Initial support for per-world permissions
Added some TODO comments. Lots of work needs to be done...