Filling outputformat list

First shot, far from perfect in term of memory management. To be
continued.
Better handling of parent/child objets hierarchy

Refactoring a bit mainwindow class, trying to hunt down memory leaks.
Warns the user when opening a new mapfile
Little refactor of the message box
Merge remote-tracking branch 'upstream/master'