JSON and HTML view for /posts, additional PostsController tests