add gotoLocation for credocument
press Enter in Goto Dialog will goto page/location directly
use --utf8-input and --utf8-out params when calling sdcv
This will prevent string encoding conversion in Kobo in which it
has problem to doing so.
This patch should fix #252 and #272.
revert JSON hack since the unusual utf8 representation is fixed
Merge pull request #322 from chrox/master

add gotoLocation for credocument
move configurable to Document class

since every document type is depend on it now
add pic document type
style cleanup in document.lua
Merge pull request #324 from houqp/houqp-master

add pic document type for jpeg
Nicer close button, solves #321.
Merge pull request #325 from giorgio130/master

Nicer close button, solves #321.
export highlights only if highlighted text is not nil
Merge pull request #329 from chrox/master

export highlights only if highlighted text is not nil
check json output before decoding
This should fix #332.
Further refactoring

This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
Merge remote-tracking branch 'upstream/master'

resolved conflicts with refactored structure
Merge pull request #333 from chrox/master

check json output before decoding
Make DEBUG a require()d local
Merge remote-tracking branch 'upstream/master'