Refactored add and edit blog posts, set them in REST standard.