Revert "remove keymanager.php"

This reverts commit f8f137186a4476a55341eb0f582cb88bb22524e5.