switch to using testem

selenium has stopped bother to download which, combined with the the fact that the tests fail in firefox due to #1215 but the tests don't actually catch it means we need a new approach, this switches out selenium for testem and fixes a few test.