IndexedDB preload caching

Preload package caching in indexeddb. Pass --use-preload-cache to the file packager to generate indexeddb code. Default is to always do XHR, as before.