Check for localStorage support

Proposed fix for Issue #85
Merge pull request #90 from yakubori/iss85

Check for localStorage support