Add publishing API intent endpoints.

Provides #put_intent and #destroy_intent, plus test helpers.