A bunch of improvements to boot2docker.go

Adjusted the code style to be idiomatic Go and fixed missing error reporting according to the suggestions by @bradfitz from here https://github.com/riobard/boot2docker/commit/7a787f88d77890c43a070b523ee98a52352dfb23