More work on refactoring textures. Added a texture loader to split
functionality between loading textures and generating texture slots.