Change JsonParse to return enum JsonParseError

This cuts the depedency on CfDebug/logging and rather returns an
error code indicating the parsing error. A textual explanation of the error
is available through JsonParseErrorToString. Also makes it easier to test for
specific errors.

JSON_PARSE_OK indicates a successful parse.