Changed StateCapture to keep the entire map instead of string version of it for states
Also have StateCapture record name of tests for easier parsing later
Flush the file contents to ensure things are actually written to disk
Change test into a maven project to run
Change run script to now use new maven style