adds redTest to data generator.
fixes build script and patch
adds check for dev distribution
automagically finds the output directory, results/ to .gitignore
fixes json for agentID
adds generation to stats output
adds data to aggregate
use charset
adds a proper close interface to OutputHandler