Implement 'deploy' action.

It is a tweaked version of the old info/bin/build.sh
Initial threaddump.sh based on the 1.9 cartridge. This is untested.
Implement tidy() function in control.
Implement pre-build() function based on v1 cartridge. It is untested.
Add post-deploy() function. Untested.
Do not print both "Reloading …" and "Restarting …".