Lots of auth/sign up/reset refactoring and cleanup.