Added user registration.  Improved hooks.  Fixed some minor async issues.