Changed how DataContextFactory is registered

Changed IoC registration to use Dependency instead of Instance,