Started adding the old JNI code to the new engine

Starting with android integration