Externalize QUnit tests

First, I externalize QUnit tests from inline JavaScript to separate
CoffeeScript files.

Then, I add the events "initialized" and "pathchanged" to the
documentlist widget and rewrite the QUnit test which are now more stable
because they don't longer rely on windows.setInterval functions but on
event handlers.