Make frescobaldi restartable

Solution from here:
http://stackoverflow.com/questions/16892407/what-is-the-proper-way-of-restarting-qapplication

(Untested)