Add attach to dockerserver

 - Move copyOutput helper from dockerclient to beam/stream.go
 - Implement /containers/<id>/attach and /containers/<id>/wait

Signed-off-by: Ben Firshman <ben@firshman.co.uk>