SYN-720: Validation of event content from user input

Note that this is a bug filed against Synapse, not the spec itself. This was discovered while working on support for the room creation API endpoint's initial_state parameter. Ruma will do proper validation of state events created through this mechanism.