Massive QML cleanup and bugfixing