Revert to using a dynamic session manager
remove unused smart_truncate function
Reduce session expiration to 5min for multiplexor sessions
Various minor cleanups as per review comments