Use the gnupg extension instead of CLI (and add docker).

The gnupg extension is a bit more programatic than using the CLI and
definitely makes things nicer code wise.