fixes #1726 Template editor doesn't seem to work with IE
added commit comment, history and preview to the template editor.
audit as twitter and versions for template.
This also closes #1377 as it offer versions and diff view of the tempates.
it is not ideal, but it should handle the most common case for now,where we should open other feature requests to support all of the ideas in #1377