Added wait REST API method
Merge pull request #87 from roydekleijn/master

Added wait REST API method