Added functionality to call GeoObjects::mergeGeometries() from GUI

This simply calls @TomFischer 's "mergeGeometries()" method from GUI (via Tools->Merge Geometries...")
I slightly changed mergeGeometries() to have a return value so I can give an error message if something went wrong.