improve rotation logic and fix small rendering annomally with very small rotations
fix additional small rotation test
fix scalebar for rotated viewports
revert earlier changes for performance testing, and fix pageup/down support
remove unused file