Rename core.* to prosody.*
So eg require"prosody.usermanager"
Rename prosody-specific things from util.* into prosody.util.*
- Improve the namespace
- Install into OS standard Lua search paths without conflicts
- Distribute util.* and net.* as separate package(s)
Too big and disruptive for 0.12 which is meant to be prepared for release.
New approach! To avoid the disruption of moving files around in the repo, we'll adjust require() behavior via searchers/search paths, allowing a gradual transition from require"util.foo" to require"prosody.util.foo"
In a way, this was already started by using dh-lua for our Debian packages, where things are installed into e.g. /usr/share/lua/5.4/prosody/util/array.lua and then the search paths are patched with https://hg.prosody.im/debian/file/d5c9e036c195/patches/shared-paths