Downgraded requirejs to 2.0.6

Changed: Downgraded requirejs from 2.1.8 to 2.0.6 because of
https://github.com/gruntjs/grunt-contrib-qunit/issues/19
Tests are now working again.
What else? More tests and fixes for deferred