Fix a bug where stack sessions were not being recognised as such
Merge branch 'session_stack_type'

* session_stack_type:
  Fix a bug where stack sessions were not being recognised as such
Fix a bug when logging in as an anonymous user
Merge branch 'anon_user_login'

* anon_user_login:
  Fix a bug when logging in as an anonymous user
No menu when not editing.
Merge branch 'favorites'

* favorites:
  No menu when not editing.
  Saving progress
  Added scroll bar to favorites widget, solves overflow
  Mostly finished favorites bar basic functions
  Race condition ajax for recording activity. Fixed
  Progress towards displaying images in favorites bar
  record student activity
  Did not commit properly last time
  Fixed issues with database access
  Saving progress
  Saving progress
Clean whitespace and some extra cruft from the merged 'favorites' branch
Merge branch 'clean_favorites'

* clean_favorites:
  Clean whitespace and some extra cruft from the merged 'favorites' branch
Refactor Permission objects
Only show Admin tab when a user has some admin permissions
Add basic Flask-Admin support
Merge branch 'flask_admin'

* flask_admin:
  Add basic Flask-Admin support
  Only show Admin tab when a user has some admin permissions
  Refactor Permission objects
Replace obsolete 'site_admin_required' decorator

This allows 'common_utils.py' to no longer depend on the 'security' module.
Add APIv2 endpoints for ImageStore
Inbox delivery for new PTIFF images
Merge branch 'ptiff-session-inbox'

* ptiff-session-inbox:
  Inbox delivery for new PTIFF images
  Add APIv2 endpoints for ImageStore
  Replace obsolete 'site_admin_required' decorator
Remove superfluous text from the session view
Merge branch 'session_view_text'

* session_view_text:
  Remove superfluous text from the session view
Add API endpoints to display resource access
Merge branch 'access_api'

* access_api:
  Add API endpoints to display resource access