added api to register/unregister Index Factory at runtime

This will allow me to install lucene index as a plugin