First try at a code editor widget with line numbers

Currently this is mainly a copy of the example code for a code editor from http://qt-project.org/doc/qt-5.0/qtwidgets/widgets-codeeditor-codeeditor-cpp.html