[do not merge - needs review] Android GL

Android GL is almost ready for merging.

Can I get a few sets of good eyes to look at the changes, since there is a lot in here.
Since this is C++ code, the correct fix is to use new, not malloc (and delete instead of free wherever the deallocation occurs).