Create IHostingEnvironment.

#71
And add a test or two please!