Moved pagination into controllers for Board.js (Thread) and Post

* Pagination Keys are now generated in the controllers
* Removed pagination generation from templates.