Refactor deploy scripts into a single generic one used by the others. Improve logging by writing stderr, as well as stdout.  Use tee in logging so user can see the output, as well as outputting it to the log file.