This adds an "extension capability" for clients to indicate that a headless browser should be used for the session.
We don't completely implement version matching, and currently ignore the "proxy" capability.
Still some TODOs here: * We don't handle all capabilities (e.g. proxy) * We don't match the capabilities against the running browser But this will parse the capabilities JSON object received from the WebDriver client.