moving some classes around
format code
fix #2 Authentication

A simple FORM authentication was implemented.
The beginnings of the Authorisation layer is written.