Closes #752. Fixed resizing of navbar for logged/public users. Fixed twitter tool. Introduced templates for documents and notes.