API: Completed basic calls for login and logout
     Creates database entry on login
     Generates token and deletes on logout