Added `res` to restify api callbacks.

Needed to enable custom resultsets for the api calls.
GET /api/mydata/123/pdf
 might want to return a pdf document, not json

need to format the response itself