new arg to SQLFORM.grid to help with large datasets

accepts a tuple, an integer or a callable. Should suffice for the most crazy setups.