refactored file-manager.js

- simplified callback soup with File APIs
- removed Q library from use
- added clearDirectory() call
now editing existing posts and creating new ones
wq
converting HTML to plan text for contenteditable