#9 Added flushing mechanisms
#9 First stab at json sink
Got all tests passing.
Close #9 Autoflush tests and code working