Refactor into standalone build scripts.

* Move build scripts from ./scripts/ to ./ci/.
* Overridable environment variables for test builds (see README.md).
* Suppress all output from `git push`.
* Fix infinite `git push` loop on PR branches.