First draft of porting the preview to QML.

Already provides all features of the old preview + zooming.