fixing compilation error for iphone driver

Fixes Issue 5680.
Use Closure's assertion library to simplify writing assertions against promise values.
Remove deprecated functions.
Defining a webdriver.Capabilities class for webdriverjs.
Remove redirect from new session command.
Ensure the webdriver.Capabilities class is properly converted to JSON.
Add native ChromeDriver support to WebDriverJs.