Mild refactoring and clean up. To delete a post you now pass a post object rather than an id.