OpenPandora port, with separate Commit for GLES, ARM, and Pandora specific

Now pull request, as I delete the original branch from which the previous pull was based.

Probably not the normal way to do it.