Move posts, page & misc objects into mainFunctions object