This adds an "extension capability" for clients to indicate that a headless browser should be used for the session.
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.