Refactored login backend and greatly improved quality of tests. Improved API to use HTTP status codes. Cleaned up backend pom.