Implement hsm_key_factory_release_key(), fixed log messages in hsm_key_factory_release_key_id().
Release hsm_key in a few places in updatePolicy(), updated TODO and code comment.