Add Library.dispose()

Turns out we do need to explicitly dispose of textures - see
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display3D/textures/TextureBase.html#dispose()

Also dispose of bitmaps immediately after converting them to textures.