Added get_permissions to auth.py, updated login

- Checks database to see if user has any positions associated with their
  positions or any manually assigned permissions.
Replaced old access levels with new permissions

- Fixed a couple bugs with permissions
- Rewrote login_required() to use permissions
- Changed login procedure to look up and store permissions
Removed debug statement
Reworked admin page logic

- New Admin permission determines whether or not the admin page is
  available
- Links in the admin page are displayed only if the user has permission
  to access them.
Merge branch 'master' of ssh://github.com/RuddockHouse/RuddockWebsite into permissions
Cleaned up permissions code

- Cleaned up view user, permission is checked in can_edit() helper
- Reverted admin page to using list of dicts instead of list of tuples
  for readability
- Made get_permissions() a little more concise
Moved permission checking into wrapper function

- auth.check_permission() handles permission checking
Minor style fix for get_permissions()

- Removed permissions variable
Fixed debug mode
Merge pull request #53 from RuddockHouse/permissions

Permissions update
Merge branch 'master' of ssh://github.com/RuddockHouse/RuddockWebsite into hassle