More cleaning, introduced extending API

Features:
+ A new extending API that allows to register new model and texture
types.

API:
+ registerModelHandler
+ registerModelInstanceHandler
+ registerTextureHandler
+ ModelImpl
+ ModelInstanceImpl
+ TextureImpl

This is mostly an experiment. I am not sure how practical it is to use
this extending API.