Moved login view (login.html) to the client side templates and also handle the login route on the client side.
Some restructuring.
Further restructuring.