Rotation logic rewrite and bugfix

[rotation] simplify rotation usage by moving it to qml
[rotation] fix positioning bug when rotating by 180 degrees
[version] 0.17