Neater environment setting for osx
In progress fixes for #777 - dont depend ot Qt and QGIS libs in safe package
In progress fixes for #777 - dont depend ot Qt and QGIS libs in safe package. Plus code formatting cleaups.
Merge branch 'master' into native_qgis_impact