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>