added CRUD operations in postFactory, set up  in editor.controller.js, s...

...ocket updates for posts in editor.html