add jasmine tests and test commonjs compliance

-Add jasmine testing to the project
-add passing tests for commonjs modules 1.0 compliance
-change from communjs from prefetching and executing to prefetching
only. Execution is carried out when the module is required. This means
behaviour is more intuitive and cycles can be handled etc.