finishing editor and preview. todo: index views and upgrade ace for stylus-mode.