Added ability to send pre-serialized JSON via ArraySegment<byte>

#1546
Test sending preserialized json from a PersistentConnection

Removed unnecessary/invalid newlines from the request body in MemoryHost

#1546