whitespace
make tests faster & more robust

* replace a lot of selenium by JSON-RPC calls..
* wait for the editor to be fully loaded before starting the tests
fix tests for confluence 4.1