move util package and ToolRef to reduce dependencies on go-dockerclient (which imports docker, etc.)