Implement client polling.
Merge pull request #259 from lavalamp/api_long_op

Implement client polling.