Added support so DI container will be thread safer. Also added support for prototypes and suppliers.