Improve formatting of views.py and use decorators for common checks
Improve formatting of views.py and use decorators for common checks

Defines a decorator for checking whether the request includes an access
token. Uses django's built-in decorator for checking the HTTP method
of requests.

microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb