Less whitespace and more comments.
Delete permission, if Domain or Mailbox is deleted. Also fix display of permissions in version index and some comments.
Lookup module, some refactoring and comments.
Refactoring of controllers, more comments and some fixes.