Added support for MSC3202 and the to-device part of MSC2409 in the appservice package. Added support for sending commands through appservice websocket. Changed error message JSON field name in appservice error responses to conform with standard Matrix errors (message -> error).