add tests for SessionFactory config

Test that session cookies can be modified by engine config settings.
make private _destroyed_session into public destroyed_session
improve destroyed_session isa with InstanceOf
Tidy session-related changes

While a .perltidyrc exists, most source files were not tidy.  I have
attempted to tidy session-related code I was working on.
keep test sessions in t/sessions