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).
Adding markup & CSS for text capture
Adding a stylesheet for the text capture view
fixes #271. Now, when we display a link in a template, we display perma.cc in prod (DEBUG=True) and the reqeust.get_host() otherwise. Now, when our partners are using Perma.cc through their domain, everything will still link to Permaa.cc
cleaned up stats page just a little.
Merge pull request #304 from easy-designs/feature/nicer-text-captures

Feature/nicer text captures
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