Refactoring of Torch functionality

Moved torchbackend logic (inc timer) from QML to C++ plugin