Add a permissions system

This adds a core permissions system to Glydar. Feel free to make edits; I haven't tested this as I don't own CubeWorld.