[Dovecot] Pointers for developing a proper encryption plugin?