Updated spec and api docs to desired new format.
Merge branch 'develop' of github.com:matrix-org/synapse into registration-api-changes
Added LoginType constants. Created general structure for processing registrations.
Split out password/captcha/email logic.
Correctly handle the 'age' key in events and pdus
Updated webclient to support the new registration logic.
Make captcha work again with the new registration logic.
Updated cmdclient to use new registration logic.
Fix unit tests.
Update spec to include m.login.email.identity
Merge branch 'develop' of github.com:matrix-org/synapse into registration-api-changes in preparation for re-merge to develop.
Be consistent when associating keys with login types for registration/login.
Updated CHANGES and UPGRADE to reflect registration API changes.
More helpful 400 error messages.
Fix 'age' key to update on retries
Fix unit tests after adding extra argument on put_json
Improve logging in federation handler.
Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them.
Fix bug where we incorrectly calculated 'age_ts' from 'age' key rather than the reverse. Don't transmit age_ts to clients for now.
Fix bug where we didn't always get 'prev_content' key