cmd/buildlet: support auto-config from GO_BUILDER_ENV, for OS X builder VMs

The buildlet now checks the GO_BUILDER_ENV environment variable on
start-up and configures itself automatically if set to a known value.

The only currently-known value is "macstadium_vm", which means that
the buildlet will get its role & build key from the OS X version
(using "sw_vers") and the VMWare VM metadata, respectively.

Updates golang/go#9495

Change-Id: I9651b2d589fed46ff3d087a97acc0ea7171e2b24
Reviewed-on: https://go-review.googlesource.com/28572
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
3 files changed