implemented refreshLock. updated selectMap(mapId).
Merge branch 'headless' of https://github.com/juliusse/freeplane into headless