Add support for registering with a threepid to the HS (get credentials from the client and check them against an ID server).