Moved max file size to constants
Merge pull request #52 from RuddockHouse/code_cleanup

Moved max file size to constants
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.
Added is_ucc to government page

- Replaces the regex used to determine which positions were UCCs
- Added is_ucc column to offices table in database
- No need to filter columns before passing to template
Merge pull request #54 from RuddockHouse/govt_fix

Added is_ucc to offices in database
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
Removed functions that weren't implemented

- They don't have corresponding html files in the template, so they
  shouldn't even be endpoints yet.
Merge pull request #55 from RuddockHouse/code_cleanup

Removed functions that weren't implemented
Moved permission checking into wrapper function

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

- Removed permissions variable
Cleaned up old map feature

- In preparation for future updates
- Removed /map feature
- Moved room mapping to database
Fixed debug mode
Merge branch 'master' of ssh://github.com/RuddockHouse/RuddockWebsite into hassle
Merge pull request #53 from RuddockHouse/permissions

Permissions update
Able to set participants for room hassle

- New table hassle_participants keeps track of users participating in
  hassle
- Can select participants from list of full members
Fixed database connection bug

- Connect to database before each request instead of maintaining an
  open connection
- Store connection in g object, which is available in the request
  context
- Updated functions to use g.db instead of taking a connection object