Adds pagination for list view. Borrowed paginate Controller and ViewHelper from Georg Ringer. :)