Add an expiration mechanism for data store entries.

At insertion time, a user can choose between two expiration styles for
the entry: either expire at some absolute time or once the value goes
unmodified for some interval.