Added publish feature to the editor.
Works with octopress as well.