Polish and bugfixes
This patch fixes a few minor bugs and introduces a possibility to purge anonymization keys for which all corresponding images have been deleted. This is suitable in situations where you would like to keep a minimal amount of protected health information in your system.