Capture console messages from Chrome via Selenium.

Also, switch HTML unit tests to use Selenium instead of
PhantomJS.