Engine: new command 'stop' gracefully stops a container.

Rebase of #2737
Closes #2737