edits directive to allow posts to be updates from editor.html, general file cleanup