Lightmapping working, major refactor

Removed some unused classes, cleaned up structure, refactored object
generation and texture/material creation