fixes to AppKernel and WebApplication to use new Di interface