Refactored Manager and other elements.

Manager can directly manage elements without any need to define a
subclass now.
Added TextureArray; Split Texture into Texture2D and Texture, the latter
being the superclass.
Fixed some minor problems.