test widget and texture management

Added a Widget class and a test case for it. Very simple right now. Also
automated the texture loading and clean up via a texture manager.