479 - add -rm support to docker run

Observation: This PR is WIP. It still needs feedback, changes, tests and documentation.

This PR adds support for automatically removing the container when the container exits (or a signal to stop is received). This PR fixes #479

It's currently supported only when -d isn't provided. It doesn't make sense to automatically remove a container created via `docker run -d`. There are two reasons why this is implemented this way: 1) we might want to retrieve some kind of exit status or logs before removing the container 2) making this run on the server side is difficult in the current architecture.

Please feel free to provide feedback for this PR.