Add support for expiring keys, fixes #49