Separates post.save method to post.create and post.update
Adds patch post route.
Fixes style.