added wait_for_services command to the client API

Closes #46