Added a test application that manages to log in. Implements a basic CSRF authentication scheme
Moved the Login logic into its own seperate file.