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