Added indexeddb shim (for safari)
Updated tests