Jni update

This is some jni/android work from Pivos (Much of it is @davilla's). The comments pretty much speak for themselves. Some fixes and some new classes.

@koying: It'd be appreciated if you could test stagefright after the surface changes.