Minor REST improvements.
-Added "/v2/server/rules" and "/v2/server/motd" endpoints.
-Minor REST fixes.
Split REST permissions from Permissions into RestPermissions class.