Clearing codemirror history when opening maps or layer groups. Fixes #7