Permission defining and saving tweaks.

* Do some additional schema checking when saving permissions.
* Set additional default permissions for administrators and moderators.