routing works but authentication does not yet.
Gone from internal server errors to auth failures.
Auth works, db listing does not.
auth works but js is not redirecting yet.
Merge pull request #5 from einhverfr/master

auth now basically works