Using $resource properly, with transformResponse.