Code cleanup

* Remove unused imports
* Update decorator docstring
* Factor out token validation into it's own function
* Fix urlconf flake8 problem
* Tell flake8 to ignore E501 issues