pgp-backend: Allow setting a gpg homedir
This commit changes nothing functionally, but has a major consequence: we can use this to write tests using a temporary gpg home directory.
That in itself paves the way for proper unit tests for the GPG backend.