Refactor web driver tests to use mocha and use latest web driver API

Be good to get some input from yourselves @jaredly @niallo before I merge this in. Quite new to the web driver stuff so I may have missed something obvious or done something extremely frowned upon without realising!