Added support for loading shaders from resources.

Seems to work good, tested against examples on my N4 and Gnex. All seems well.