Browser tests (wd, sync version)

It was a bit harder than initially expected, but this is a more synchronous version of functional tests using [wd-sync](https://github.com/sebv/node-wd-sync).