lib/usergrid/class_statics.js
function options(Class, hash) {
  var opts;
  var type = { type: Class._usergrid.type };
  if (hash) {
    opts = _.assign({}, hash, type);
  } else {
    opts = type;
  }
  return opts;
}
function options(Class, hash) {
  var opts;
  var type = { type: Class._usergrid.type };
  if (hash) {
    opts = _.assign({}, hash, type);
  } else {
    opts = type;
  }
  return opts;
}
utility methods clones hash and adds type for usergrid context