PostsController#create returns JSON if requested

outline some specs
PostsController#update returns JSON if requested