IE10 and tests

This pull request fixes the unit tests in IE10 (by rewriting the ajax part of the tests). While working on them, I also split the js code between the tests code and the ajax code. As a nice side effet, we can now launch the unit tests with nodejs (with [node-qunit](https://github.com/kof/node-qunit)).
Please see each commit for more informations.