Major rewrite of GUI started.

Most GUI code will be moved from the qml files into the cpp files in the
next couple updates. The process has started, but is not complete.