initial commit of jasmine tests, by no means complete
added extra error handling to F2.registerApps