Globals moved to g module
Fix pwnUser => pwmUser
Cosmetics
Add loginDisabled support to algorithm and several fixes
Initial mail code