Add category to posts, repair some tests, refactor sample_data.rake, make partials