Daemon code cleanup
-
relocate all session-related business logic to separate module -
unificate processing of inbound and outbound TCP connections where it possible -
use qtrie instead of array_t for keyed access -
get rid of copy-paste -
split huge functions like qr_task_step to smaller ones