bugfix: set toc/bookmark window dimension smaller than screen size
Otherwise if text widgets in toc window expands out of screen, memory
free on these widgets will mess up the heap. It sounds ridiculous but
after we restrict toc window well inside the screen the bug in #815
is fixed.
add standalone glyph cache
I found it will be especially helpful to cache glyph separately
so that glyph caches won't be washed out by a single page cache.
Merge pull request #9 from chrox/catch_up_legacy

cherry picks from the new_ui_code branch of legacy repo
Merge pull request #10 from chrox/master

rename kpdf.sh to koreader.shin in customupdate
remove leftover legacy picviewer.lua
Merge pull request #13 from hwhw/master

remove leftover picviewer.lua from legacy KPV code
add two finger swipe gesture
use two finger swipe gesture to return to original page in flipping mode
remove unnecessary require
Merge pull request #14 from chrox/swipe_to_return

use two finger swipe gesture to return to original page in flipping mode
add two_finger_pan_release gesture & some refactorings in tap state
Merge pull request #16 from chrox/more_gestures

add two_finger_pan_release gesture & some refactorings in tap state
update README on emulation
fix readme link
Merge pull request #19 from houqp/houqp-master

add more instructions for emulation mode
add pinch, spread, rotate and inward/outward pan gestures
use new directions in pan/swipe gesture
fix direction rectification of pinch/spread gestures
use pinch/spread gestures to set zoom mode
fix DEBUG location in case ges_ev is nil