Merge pull request #52 from hwhw/master

fix typo in lulip.lua
first stake at converting blitbuffer operations to FFI
fix to blitbuffer.lua, adaption of Lua/C-API

changes the Lua/C-API to accept both "blitbuffer" userdata as created by the "classic" Lua/C API (blitbuffer.c) and lightuserdata which it gets passed when called with FFI-created "BlitBuffer" structs as parameters.

also adds rounding to the blitting functions since these may get called with non-integer values from other Lua code
register external font defined in EPUB style sheet
with URL prefix "res://" and "file://" like this:
@font-face {
	font-family:"zw";
	src:
	url(../Fonts/zw.ttf),
	url(res:///opt/sony/ebook/FONT/zw.ttf),
	url(res:///mnt/us/fonts/zw.ttf),
	url(res:///mnt/sdcard/fonts/zw.ttf);
}
Merge pull request #54 from chrox/master

register external font defined in EPUB style sheet
Make util.isEmulated return a boolean.

Some places in koreader code were using it as an integer, another places were using it as a boolean.
Make it a boolean. This fixes part of koreader#20.
Merge pull request #55 from thotypous/frontlight-fixes

Make util.isEmulated return a boolean.
Implement util.realpath
Merge pull request #56 from thotypous/realpath

Implement util.realpath
Add Freetype 2 FFI binding
don't build old Lua-C-API ft.c Freetype 2 binding
add C declaration files for header generation

not yet integrated into Makefile - we _might_ want to autogenerate
files like "freetype2_h.lua" with the FFI declarations based on files
like these
cache some functions for faster access

we use these when doing heavily redundant operations, so make access path as short as possible
update libk2pdfopt for slightly better memory footprint
Merge pull request #57 from chrox/master

update libk2pdfopt for slightly better memory footprint
made blitting blazingly fast

blitting via copying each nibble by getPixel/setPixel is
sloooooow. About 10x slower than the old Lua/C API.
So re-introduced the algorithm from the old API - implemented
in pure Lua (using FFI data structures). That is now twice
as fast as the old Lua/C API.
Merge remote-tracking branch 'upstream/master' into ffi-experiments
update k2pdfopt to version 2.00
Merge pull request #58 from hwhw/ffi-experiments

FFI: Blitbuffers, Freetype
Merge pull request #59 from chrox/master

update k2pdfopt to version 2.00