Properly clean up JNI global refs so the table doesn't fill and crash an app
Merge remote-tracking branch 'upstream/master'
a simpler fix for the DeleteGlobalRef issue
Merge pull request #46 from YAYitsAndrew/master

JNI fixes to prevent the global ref table from overflowing