fix rotation with viewport
move initial rotation, fix refresh bug

this moves the code that does initial rotation - for now, on Kobo
devices, which often start up in landscape mode.
Merge pull request #283 from hwhw/master

Fix some funky behaviour