Fix concurrency bugs in Selenium Webbit example.

Also switched from Chrome to Firefox, since it doesn't require the installation
of the chromedriver command line tool.