Add localforage cache pruning to limit the overall size of our local database (bug 1011067)