Refactored the overall code: organized imports, renamed some methods
Implemented logout and introduced the current user in the session.
Refactored the JSP's and the JavaScript files