WIP: Separating auth methods from base

moving methods that handle authentication and displaying login from away from base

Cc @LukasReschke @MorrisJobke 
This just seems to be wrong here. Not sure what it exactly does though. Needs investigation.