Changes for #16 Use production session manager when not running in debug mode