Fleshed out the CAPI stuff

Project is now waiting for some more facia work, specifically,
integrating/(pasting from) the existing facia client.
Merge pull request #2 from guardian/capi-additions

Fleshed out the CAPI stuff