Add ability to shutdown the buildserver.

New requests will be rejected, but existing builds will run to
completion. Also updated the healthcheck function to only reply with
success if a shutdown is not pending. So any load balancer will know
to no longer send jobs at the server while it is shutting down.

Change-Id: I4a2224df99170deef08a780ab7328ebcebbb068b