Utils to write tests for a Go-Json-Rest app.

Extract the utility functions used to write the handler tests to a
dedicated package. Users of the framework can use this new package
and get a set of nice test functions.