Identity map implementation for Backbone models and collections using IndexDB