Refactor code

Moved all of the EGL- and GLES-related code into a separate package
to make it easier to find things.