subtests.docker_cli: Add the `docker wait` test

Hi guys,

this pull request contains one new framework method in `dockertest.dockercmd`, one fix of `dockertest.output` and the new `docker wait` test. Please find the details in commit messages.

Regards,
Lukáš