Updated route resources and added partials for common view components. Also created M:M associations between posts and categories.