reorganized page code into a service
refactored some code underneath, and added years/months to the sub-category pages
fixed a bug
displaying all posts for a time range