Issue #352: additional installation checks

* Check that PHP is installed
* Use curl to download data snapshot if mac, use wget otherwise
* minor style cleanups
* exit 1 codes + use echored if errors
Personally I prefer ```if ! hash php 2>/dev/null```, mostly because it's shorter, but the effect is the same :-)