Merge pull request #738 from houqp/new_ui_houqp

change ev argument name to tev in gesturedetector.lua
bugfix: restore original zoom mode after cropping
Merge pull request #739 from chrox/new_ui_code

bugfix: restore original zoom mode after cropping
bugfix: calculate current config value or arg at runtime
add screen mode restoration for each document
check screen mode in koptinterface
cleanup: use postInitCallback to restore screen mode
cleanup: use screen size in page hash explicitly
Merge pull request #741 from chrox/new_ui_code

bugfix: calculate current config value or arg at runtime
fix visible_area recalculate for manual crop in reflow mode
Merge pull request #742 from houqp/new_ui_houqp

bug fix: reader crashes when table of content is empty
always make sure we switch to page mode in manual cropping
fix bug in getPitch, returning half of ptich for 4bpp fb
Merge branch 'new_ui_fix' of git://github.com/houqp/kindlepdfviewer into new_ui_code
fix visible_area recalculate for manual crop in reflow mode
Merge pull request #745 from houqp/new_ui_code

fix bug in getPitch, returning half of ptich for 4bpp fb
properly set up shadow buffer's pitch and bug fix on eink update

previously, counters never reach 0!
get correct screen width in Screen.lua
add more comments
Merge pull request #747 from chrox/new_ui_code

fix visible_area recalculate for manual crop in reflow mode