Adds a pluggable record Writer.

Retrofitted the String writer to extend RecordWriter.
No tests added, no tests affected.