container: reject empty containers in AttachToContainer

Related to #9.
client: remove some old code (syncing with docker master)
container: finish AttachToCotainer implementation

Closes #9.