Adds logout and authorization methods

Also changes the login form to accept the new params as taken from @mconiaris seed file.