Refactor: Put error handling in one place

Handle errors in a single method in server.js,
rather than a bunch of different log and response
statements.
Refactor: Remove duplicate user creation code

We were repeating ourselves when creating the admin
user and adding regular users.
Refactor: Clean up auth

Pass once through the auth code and clean up
as we go along.