Support for delegate factories with singleton, multi-instance and custom lifetimes 

Support for delegate factories with singleton, multi-instance and custom lifetimes 
also made http lifetime provider not bomb out in unit tests