User Account Support

This adds full user account support including registering, logging in, logging out, email confirmations and cookies.