add blitToBufferRotate to blitbuffer.c
first demo of screen rotate
ReaderConfig: bind touch event listener range with widget dimen

So we only need to change widget dimen on SetDimensions event
fix crash in goint into screen saver
add SetScreenViewMode event and related handler in ReaderView
add screen rotate to readerconfig
fix adjustGesCoordinate
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate

Conflicts:
	frontend/document/koptinterface.lua
add getScreenMode in screen.lua
rename setScreenViewMode to setScreenMode
set default_arg for screen_mode option on runtime
fix bug for touch event coordinates handling in landscape mode

This fix might only work for KPW, need to test on other devies
later.
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate

Conflicts:
	frontend/ui/reader/readerconfig.lua
properly close ReaderConfig on screen rotate
Merge pull request #732 from houqp/rotate

Screen rotate support for new ui