fix(build.sh): fail on errors in Dockerfile two-tier builds

Without "set -e" at the top of each build.sh script, errors would
not propagate to the parent "docker build" process. In the case
of controller, this was masking a missing dependency which is now
fixed.
fix(registry): prefix "apt-get install" with "apt-get update"
Merge pull request #2362 from mboersma/catch-build-sh-errors

fix(build.sh): fail on errors in Dockerfile two-tier builds