WIP: Separating auth methods from base

moving methods that handle authentication and displaying login from away from base

Cc @LukasReschke @MorrisJobke 
Can you please create a dedicated PR for this changes? - This is really handy and I'd appreciate to have it in core asap.