Fix recalculation of sending socket after local route

Take into consideration the "force_send_socket" setting in local route.

(cherry picked from commit d37ae664dcfd9a5f83de62a493628ba12d495e75)

Conflicts:
	modules/tm/uac.c
fixed acc to raise the proper event when using acc_evi_request()

Credits go to Brett Nemeroff for reporting and testing

(cherry picked from commit 24bd3a843f382860a917dc7da0c8af52afb4c9b8)
mi_xmlrpc: fix crash when flushing complex MI trees as strings

	* crash was replicated with "ul_dump" command at 51+ contacts
		- "reply_option" must be disabled

This patch solves a couple of other issues:
	* properly mark completed nodes when "reply_option" = 0
	* a rare memory leak when flushing empty "mi_node"s
(cherry picked from commit f5da89d27099f405e1242347bdf9e3cb6368423c)

Conflicts:

	modules/mi_xmlrpc/xr_writer.c