Simple javascript storage wrapper with optional expiry time.