Added jsmn JSON parser.
Added loading/saving code.
Merged.
Quick hack to fix recording.