ignore attempts to empty public_key, refactor

refactor: prepare validations of the uploaded pgp keys
simple validation for pgp key format
minor: rename test to what it actually tests

[skip ci]
make sure key responses are plain text
Merge branch 'plaintextkey' into develop