Selenium improvements

Parameterized code so it can be run for any Dryad server.

Not all tests pass yet.