Moving DependencyResolver out of AutoMapper to fix ISession issue