Add keypair metafiles for api samples

Converts keypair api sample to create meta files for api sample docs.
We use this to auto generate the specification document.

Change-Id: If70dac6b99d1d25d001e8ca1bf2eb1e05049d764