Bugfix for reverse global order construction
Added flat singleton collection result schema construction to KTrace
Added ktrace mode handling
Working initial version of json logging.

hardcoded to k3_log.dsv  with | for delimiter.
Updates to Json logging

- Handle multiple peers
- Add timestamp, peer_id, trigname, message_contents to entries
Add json logging to codegen

Log json after calling a trigger
Add debug level to log
Cleanup whitespace
Add missing file
Add source of message to message type

Fix all the resulting fallout
Print source of messages in JSON log

Lots of small changes needed to thread the source address all the way
through to the generated code
Add options to log result. Finish up logging
Merge branch 'jsonLogging' of github.com:DaMSL/K3-Core into jsonLogging

Conflicts:
	runtime/cpp/BaseString.hpp
	runtime/cpp/Engine.cpp
	runtime/cpp/Engine.hpp
	src/Language/K3/Codegen/CPP/Program.hs