Added login functionality

Needs loads of styling and alert views, model views to be implemented.
Also need to tidy up the node dependencies!