Implemented token authentication using Djoser (and, commented out, basic...

... authentication). Refactored javascript in all frontend pages for consistency. Fixed a few bugs.