User:YuviPanda/PhoneGap App Refactoring

The current app architecture is just a 'Big ball of mud rolled into the global namespace'. Flow is completely non-intuitive (also helped by async nature of JS), and magic strings are litered everywhere (bookmarksDB should be called savedPagesDB, for example). Needs to be tamed before it gets worse.

Parts

 * 1) app.js - Singleton, contains all generic 'app' related stuff (page navigation, language change, etc). Access to pretty much everything occurs via the app object. It's our 'new' global namespace
 * 2) settings.js - Encapsulates access to all settings related stuff. Note that this should handle only 'settings' (preferences) and not 'data' (like the bookmarksDB)