Major refactoring of the code

This PR isolates the different Handlers' codes, easing maintenance.

Also, introduces a new BasicHandler and AuthHandler that will allow us to provide authentication with google accounts.