Added methods to manage project deploy keys via API

Fixes #1985.