Rewrite build system in Python

* prepare.py stages everything; use setup.py in app-staging to build.
* Currently tested on Mac but written with cross-platform in mind.
* Removed build shell scripts.
* clean and, therefore, common.sh, remain for now.
Ensure the new build script tries to compile stuff by default.