Create IHostingEnvironment.

#71
You're right, DI does throw now, I'll remove this old code.