Add select and drag (#42)

Fix memory corruption when painting outside map
Add autosaving (#42)

Fix bug with loading missions in editor
Fix broken JSON int array loading