Oliver/login

This is going to be a ridiculous PR, sorry guys.

I refactored just about everything into sane (hopefully) Express application structure, and changed most of the login code. The good news it that it works!