Added support for environment setup and fixed the way user command is passed to work with /bash -c "arg" kind of input.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)