support dimension extraction functions in group by
Merge pull request #474 from metamx/groupby-dimextractionfn

support dimension extraction functions in group by