Implement Mastodon-style registration API
Part of #734 (closed).
API description is at https://docs.joinmastodon.org/api/rest/accounts/#post-api-v1-accounts
Part of #734 (closed).
API description is at https://docs.joinmastodon.org/api/rest/accounts/#post-api-v1-accounts