Implement libtesseract_main JNI bindings.

Signed-off-by: Iliyan Malchev <malchev@google.com>