Wrapper for HTML5 storage which supports tracking the age of items and data type preservation