REST: take into account @Resource annotation when calculating response formats
Merge branch 'master' of github.com:grails/grails-core