Update post route should allow json.
Add tests for editing a post with POST and JSON params.
Add unit test for creating a post with JSON parameters.