fixes, deferreds, login methods prep
refactored config, created auth.login and refactored auth flows