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.