All: Add tool for managing app bundles
Qt: Replace macdeployqt with tools/deploy-mac.py
All: Fix small bugs in deploy-mac.py when using a root