Dirty and destroyed should also check storeName items

syncDirty and syncDestroyed get the localStorage item by their URL identifiers. When you use a storeName prefix, these functions can't find the localStorage item. 
This PR just patches the functions to also check storeName.