Add support for pluggable validation for items fetched from localStorage

Updated documentation and squashed to a single commit