Use Closure's assertion library to simplify writing assertions against promise values.
Remove deprecated functions.
Defining a webdriver.Capabilities class for webdriverjs.