Update api.md

The condition for webdriver.WebDriver.prototype.wait can alternatively return a Promise, yet this isn't documented. Condition functions returning a promise are much more useful than a function returning a boolean.