Reworked registration and Oauth flow and added ability to unregister