added CRUD operations in postFactory, set up  in editor.controller.js, socket updates for posts in editor.html