Add publishing API intent endpoints.

Provides #put_intent and #destroy_intent, plus test helpers.
Merge pull request #260 from alphagov/add-intent-endpoints

Add publishing API intent endpoints