Grids: Refactoring and fixes

iG: removed templates/grid_common.mako