Added a better source editor, mime type fixes

Default editor for wrap templates is now scintilla
Some bugs in mime types were fixed as well as several added
Added a KeyboardManager for future capabilities