Fixed memory leak. Added texture management in RenderHandler. Added mouse input in demo.