Add -fno-rtti flag.
Rename ApiEvent 'msg' to 'params'.
Fix comments.
Fix issue with ordering of keys in json dictionary.