initial commit of jasmine tests, by no means complete
added extra error handling to F2.registerApps
merging jasmine branch into 1.0.5-wip