Adds session factory and domain objects, removes xml configuration