Switched from JsonCpp to json-spirit library for JSON parsing.
Deleted all JSON parsing code and fixed problems with new library.
Merge branch 'json-spirit'