Added indexedDB shim
Added option to use indexedDB for caching layouts (more space)