Added knockout.js support for previewing new posts and scratchpads