Feature/auth

Added JWT auth, and did several other improvements.