Fix for #19: SessionManager and custom SessionFactories

Signed-off-by: Bryan Robbins <bryantrobbins@gmail.com>