solved some HeadlessExceptions thrown while working without GUI
Merge remote-tracking branch 'freeplane/master'

Conflicts:
	freeplane/src/org/freeplane/core/ui/MenuBuilder.java
making Freeplane library work in headless mode
Merge pull request #33 from cristina-constantinescu/master

Making Freeplane library work in headless mode