JNI improvements, added JNIEnv access (for native extensions) and added access to JNI fields, adding getter/setter access for static and local properties