fix bugs in persist.js - double callback execution
added localforage support