Adds basic registration endpoint to the API.