Now loads posts from localstorage before retrieving new ones, otherwise wouldn't work without internet connectivty