Adding registeration endpoint that responds with JSON and vaguely helpful status codes