Jasmine 1.3 Adapter introduction

As a step towards moving towards using Jasmine rather than JSTestDriver for unit testing an adapter to convert JSTestDriver tests to Jasmine tests has been introduced. Because this results in changes to "this" for many contexts in the tests this has required many helper functions that were put on the test case prototypes be converted into things accessible closure-scope.

Further work will be required to move this to Jasmine 2, and to have Jasmine tests run via Grunt.