Fix #2561, Fix #2525 (broken GPG plugin)

Fix issues in presence signatures (no tests SHA-512), typos, update
gnupg.py to a recent version, fix the completion, and display the
messages we send properly