WIP: definition of a session manager and interceptor definition.

#94, #56