make categories index work, make show actions for categories and posts, fix a redirect