Added :timeout parameter to Container#attach

I found no way to set a timeout for task running in a container if I tried to attach to it using `Container#attach`. So I added the `:timeout` parameter to the `#attach` method.