Offline storage

Added: ability to get data from the local storage incase the xmlhttp
request is not possible.