refactor selenium stuff into startSelenium() function so we can check for existing servers more robustly