Use WebDriver for functional tests

Just experimenting, not ready for review yet