Cleanup and better use of Aglex

Some cleanup in a few places, moved some files and classes to Aglex (see
commit there), now using Aglex's Texture class instead of integrated
texture loading functions