Refactored post serving to serve objects as opposed to arrays, fixed editing and deleting of posts and comments