added localforage, rest http util