Fixed bugs in the Autofac DI setup that were preventing it from running.