gpg-protocol: simplify gpg_agent_connection
replace atoi with strtol
Simplify agents.c API

Also fixes issue where envoy -K/-k would, wrongly, spawn a new agent.
data->pid must be reset

Otherwise the *second* agent's pid won't get parsed properly when
SSH_AGENT_PID isn't provided with gnupg-git (see #26).