added front page retrival to posts route
Merged Mike's sorting code into posts route, added front page option to post retrieval