Overhaul module to expose a SessionHandler class

Moved to a class based module as it suited the use case better
Expanded optionality to make the module more customizable - table
names, redirect URLs and secret are all parameters now