workspace: move new file warning to workspace
workspace: Check the file before opening it

Close #202
Tested on linuxmint-16-cinnamon-dvd-64bit.iso
document: fix crash in editortoolbar on document close
actionmanager: free memory when removing action

Close #204