code: function(config) {
      config.client
        .query(config.query.analysis_type, _.omit(config.query, 'analysis_type'))
        .then(function(res, err){
          if (err) {
            config.error(err);
          }
          else {
            config.success(res);
          }
          if (config.complete) config.complete(err, res);
        })
        .catch(config.error);
    }
docs: Execures a Keen.js query with the provided client and query params, calling the
  callbacks after execution.
  @param {Object} config The runQuery configuration
  Expected structure:
  {
  client:   {The Keen.js client},
  query:    {The object with the query parameters},
  success:  {Success callback function},
  error:    {Error callback function},
  complete: {Complete callback function}
  }
  @return {undefined}