code: function prepareData(response, rootUrl, data) {
    if(data.devices) {
      var devices = data.devices;
      for(var device in devices) {
        devices[device].href = rootUrl + "/associations/" + device;
      }
      response.devices = devices;
    }
  }
docs: Prepares and adds the devices to the given API query response
  @param {Object} response JSON representation of the response
  @param {String} rootUrl The root URL of the original query.
  @param {Object} data The data to include in the response