Add support for accessing native bidi implementation via jni.

Include a simple test to verify that the bidi code works.
5 files changed