Refactored existing backend. Moved backend stuff to javascript/backend folder. Now, every test will have its own module in this folder. The module should provide handlers for events that are allowed to happen in that test.