WIP: massive refactoring, login is now email & password, etc.