Max 167

Merge MAX-167, which includes active operation counters and their usage by default in router session load balancing.
Also includes several fixes to session command and query response handling.