Issue #2 - Create login authentication

Added login and logout endpoints. Added decorator ajax_endpoint. Added
HTTP Exceptions.