Revert "Reverting change that was pushed too soon"

This reverts commit b9d2a403d9c2ce1ec0f63c019f686b0853a8fd4f.
Preventing access to files outside www
Configuring cache like Cordova does
Latest shared/samples
Merge pull request #687 from wmathurin/unstable

Support for https://localhost on iOS