Adding exec remote API documentation along with minor code cleanup.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Merge pull request #8092 from vishh/exec_api_docs

Exec remote API documentation