[Fix #419] Rewrite module gpg-agent; rename it to gpg