added IOC support powered by Autofac.