Create TextEdit.py

And this is the widget subclass of qutepart that takes care of capitalizing keywords, plus new undo/redo machinery to replace the QWidget machinery that will be trashed by some of what's required to make this whole editor work properly.