Refactor user group permission checks.

This update adds a user.has_group() function, @require_group()
decorator and user|has_group template filter to allow for prettier
permissions checks.

It also adds a unit test to ensure that all the user management views
accept who they should accept and reject who they should reject.

There are also a few style tweaks in user_management.py (normalize
indents, remove semicolons, reorganize imports).
Merge branch 'dev.groups' of https://github.com/jcushman/perma into jcushman-dev.groups

Conflicts:
	.gitignore
	perma_web/perma/templates/admin-layout.html
	perma_web/perma/templates/user_management/manage_journal_managers.html
	perma_web/perma/templates/user_management/manage_journal_members.html
	perma_web/perma/views/user_management.py