Added pagination to home page.

Added pagination to the home page and setup some config options to
control how many discussions/comments per page.