Changed the way session settings are defined, allowed instances to be passed into IoC config