Ensure someone is logged in before delete/duplicate/remove/sort templates.
Fix issue with template duplication and non-autoincrement insert operation/table.
Merge pull request #74 from palepurple/login-enforcement-lo-properties

Login enforcement lo properties + LO duplication
Merge remote-tracking branch 'origin/develop' into editor
I changed some small things on the configuration of the editor.

 - Remove flash button
 - Add insert media (from youtube, flickr etc)
 - Collapse toolbar by default
 - enable source highlighting
 - add icons to site table (some are still missing)
Issue #75: When you insert a <table>, a lot of new lines are inserted
Merge remote-tracking branch 'origin/develop' into editor