add encoding to get_template
refactoring editor
refactoring task_and_tags.js
refactoring Editor
added def header
refactoring