JNI improvements, added 'getEnv' to get a JNIEnv reference (for native extensions) and more importantly, added getter/setter access to Java fields