Various fixes and some temporary work
Add test for line
Add debugging of text elements
Remove qml engine from the backend

Its a bit of a big patch, but I think this is a sensible way forward