Some refactoring to make pullreview.com happier.
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.
Coding style (blank lines, case indentation, parentheses around regex arguments).
Minor coding style changes.
Indent when as deep as case...
More elegant URL determination for objects in versions index.
More refactoring of linking to objects in versions#index.
Password rarely could be too short.
Merge pull request #1 from nning/refactoring

Refactoring