api.cancelAlerts()

Add new api.cancelAlerts() command. Removes all api.alert(...)'s that are on the screen.

Use case: when using modal window management I do a api.alert("Window management active", 999999). When I exit modal window management mode I do a api.cancelAlerts() which removes all messages on the screen.