Fix leaks of JNI local references.
Remove CCArray log on doubling size.
Update nativeactivity.cpp to support ShapeJam.

1) Don't destroy OpenGL context when activity pauses (and disable CC_ENABLE_CACHE_TEXTURE_DATA)
2) Execute pending functions even when not animating.
3) Add offset to motion events to account for status bar on android.
4) Detach JVM thread at the end.
5) Don't cache local reference across threads