juju: implemented ExecuteCommandOnce.
removed comments.
juju: implemented startedUnits.
juju: using startedUnits in ExecuteCommandOnce.
juju: refactored ExecuteCommand and ExecuteCommandOnce.

using a private method `executeCommandViaSSH` to centralize the
logic to run commands via ssh.
docker: implemented ExecuteCommandOnce.