Add libjsoncpp and serialize objects and events (not finished)