Changing CLI and EE to print results with a writer rather than building
them in a buffer. With very large datasets the buffer can be flooded.
Also removing uses of StringBuffer from UI and CSVIO replacing them with
StringBuilder.