function aliasByDictionary (obj, aliases) {
  for (var key in aliases) {
    if (undefined === obj[key]) continue;
    obj[aliases[key]] = obj[key];
    delete obj[key];
  }
  return obj;
}
Convert the keys in an `obj` using a dictionary of `aliases`.

@param {Object} obj
@param {Object} aliases