Fix delete errors, and get sidebar working on
New Document pages.
Merge pull request #21 from hoangelos/master

add sidebar on New Document and fix config deletion