Improve REST

I use the plugin for tests agains a Grails 2.3 resource API and these changes where neede to make it work.