Allow expiry time to be set on kv sandbox resource keys.

This is needed for temporary session data stored by sandboxes.