More KeypairAPI cleanups

* DRY up quota checking for new keys

* DRY up formatting of get_key/get_all_keys results

* Add tests for get all keypairs

Change-Id: I14a97c0f3cb3aa9b827d14002c21076a41942023
Merge "More KeypairAPI cleanups"