Fixes to various funcitons: editPost.html, savePost() and deletePost().