Add client-complete-pending-command method.

This adds a wrapper around client-complete-pending command and
a test proving that it's needed when downloading multiple files
Merge pull request #8 from sw1nn/client-complete-pending-command

Add client-complete-pending-command method.