CB-4319 localStorage database is relocated when restarting app on OSX

fixes:
- initialize web storage earlier
- read location from config.xml
- add fallback with bundleId if missing
- add missing placeholders in config.xml template

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-6502 Invalid URL and version for osx platform

Signed-off-by: Shazron Abdullah <shazron@apache.org>
Fixing various project-helper scripts

fixes:
* CB-2979 Add a ./cordova/lib/list-devices project-level helper script to OSX
* CB-2971 Add a ./cordova/lib/list-started-emulators as project-level helper script to OSX
* CB-2954 Add a ./cordova/lib/list-emulator-images project-level helper script to OSX
* CB-2987 Add a ./cordova/lib/install-emulator project-level helper script to OSX
* CB-2995 Add a ./cordova/lib/install-device project-level helper script to OSX
* CB-3003 Add a ./cordova/lib/start-emulator project-level helper script to OSX

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-2926 Add a ./cordova/log project-level script for OSX

- added log output to build script if it starts the app after building
- added flag to support launching in foreground

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-6493 Project template organization - add www folder reference, prominent config.xml

Signed-off-by: Shazron Abdullah <shazron@apache.org>
adding tests
Merge branch 'master' into tests
adding tests