Cleaned up some code and changed RapidJSON to a submodule instead of simply including the headers directory.