Make selenium-webdriver an optional dependency, closes #887