add a new api endpoint for importing gpg keys

Solves issue #488