Don't return from attach until in and out are done
Merge branch 'in-out-done' of github.com:benmccann/go-dockerclient
client: use a WaitGroup instead of channel for waiting on goroutines