code: function(k, i) {
        var rval;
        if(typeof(k) === 'undefined') {
          rval = frag.query;
        } else {
          rval = frag.query[k];
          if(rval && typeof(i) !== 'undefined') {
             rval = rval[i];
          }
        }
        return rval;
      }
docs: Get query, values for a key, or value for a key index.
  
  @param k optional query key.
  @param i optional query key index.
  
  @return query, values for a key, or value for a key index.