Adds login functionality. Pre-refactor.
Issue #1.
Moves passport code into login routes.