Set AttachStd* attributes according to detach and stdin_open commands, analogously to the docker cli
Merge pull request #37 from aanand/set-attach-attributes

When creating a container, set Attach* attributes according to detach and stdin_open arguments