Add localStorage and ensure that its absence doesn't cause exceptions
Add removal/reset compatibility for localStorage to Cache API