Added comment editing. REST api. Refactoring.