add data($mapper, $data) method

separate the functionality implemented in respond() that has to do with
getting the data part of the response into its own data() method which
allows calling Api::data(..) to get the data only.