Cleaned the code for grouping of history results

Did some cleaning of code ( variable names, data type etc) as well as added a macro for doing that in template.

Will post the changesets after the code review.

MoinMoin: AkashSinha/Gsoc2011Diary/2011-06-05 (last edited 2011-06-06 09:28:20 by AkashSinha)