Let's start the process of moving delivery settlement and disposition handling out of the core thread by isolating the qdr_delivery_t handling code. This code is currently residing in the transfer.c source file which also contains various link and connection state handling. The qdr_delivery_t structure definition should also be moved out of the common router core private header file.
This change will simply move delivery code to its own delivery.c and delivery.h in the router_core directory (for now). No functional changes will be made, though some method names may be changed for consistency.