Generic widget functions for pagination controls.

Generic widget table building function and associated classes.

Minor comment edits.