Feature/pagination class

http://tracker.phpbb.com/browse/PHPBB3-11849