Removed some bugs

- Bug when saving a game with empty list
- Bug with newlines and Markdown
- Bug when using Html with detail image update
- First refactoring for autosaving