Expose and add helper for tests

In order to make them reusable in the chhtpd integration-tests.
Additionally adding a post and delete helper.

COUCHDB-2462