Added initial localStorage suport for intermittent offline beacons (#24)