Changes to use version 2 of go-json-rest

Hi Ask,

I've merged to master the v2 of go-json-rest, which contains a few breaking changes.
This PR is to make your code work with this new version.
I sorry I had to break master, I wish Go had better tools to handle versioning.

Antoine