Automatically detect ENV variables

this MR adds support for boot2docker
this could be simplified to the following:

```
func getHost() string {
   return os.Getenv("DOCKER_HOST")
}
```

since `Getenv` will return an empty string if the environment variable doesn't exist :)