Added support for sission IDs
Session structure in place. ready for network debugging