WIP: Separating auth methods from base

moving methods that handle authentication and displaying login from away from base

Cc @LukasReschke @MorrisJobke 
I don't think there is a reason for this, needs investigation why this is evenhere.