Scaffolding for entity serialization

- on update() from the main loop, we serialize entities to JSON