Add hostedpci gateway

Needs at least one test for the failure case of each API method.