MOBILE-168 Some issues found when working in the notifications plugin

cordova.js - Duplicated code
mm.db.js . Remove excessive logging
mm.js and mm.settings - Improve logging performance, previously we did
a fetch to the storage on every log action, now we use a global flag
that is updated when the debugging setting is changed by the user
MOBILE-168 Window.device Cordova API is not emulated

We need “fake” values for testing the notification stuff, we also fast
load the emulator in Node
MOBILE-168 Fixing sync of some elements that was not fire at start up
MOBILE-168 Initial notification support

Beta support only suitable for testing
MOBILE-168 Handling button click using events not routes
MOBILE-168 Deleting unused routes
Merge pull request #37 from moodlehq/MOBILE-168

MOBILE-168 Initial notification support for testing