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
Issue #75: When you insert a <table>, a lot of new lines are inserted