Made changes to creating messages.
- Changed the name of ResponseWriter to BufferTextWriter.
- Serialize directly to a memory stream instead of converting it to a string first.
- Made BufferTextWriter buffer size configurable.