extendable auth methods

I made a better abstraction of the auth methods, this allow to extend the server with more auth methods.