With tonthon, paginate with webhelpers

Using webhelpers to build sql queries and compute frontend buttons.
Using a dropdown list to decide on items per page and a cookie to store the
value.

Fix missing import in templates