changed output stacktrace format to json
using json_spirit
append JSON objects to log
Merge pull request #599 from wanderer/develop

changed output stacktrace format to json