Use roundcube template system for key manager

Extracts html from js into template system