Refactor json logger
Move log flush out
Add rerun to bundle
Started working on REST API
Start the game in the background (no response yet)