Refactor: Making webdriver be composed of an HttpClient object