Exposing the withTTY method for container creation.

Fix for issue #34. 

To avoid that some containers die immediately in integration test scenarios, I have exposed the withTTY method for container creation.