dispatcher init: initialize the old_data pointer

	* otherwise, the code will dereference a random pointer
(cherry picked from commit dbf1b4bfe98e0d18debaca9c33fc0adc2a1809fe)
hp malloc: fix shm statistics

	* processes now update fragment statistics for each bucket
	* the MI workers iterate and aggregate all memory information
	* the built-in maximum sampling rate is 200ms
		- repeating a fetch in < 200ms will return the same results
	* this patch also corrects a rare deadlock in hp_realloc
		- hp_realloc "growth" may deadlock with hp_malloc "shrink"
		- the best solution is to drop the "growth" realloc operation
		- this also merges well with the allocator fragmentation requirements
(cherry picked from commit 9ad2947eed7add4510b1fa388004524cc50d5bab)
hp malloc: reorder some initializing operations

	* hp_mem_warming() fails if anything is allocated before
		(it cannot access the big fragment anymore)
(cherry picked from commit 9f710642b9da0d091d67b79b95b4a89cac954315)
call_center: fix some db schema errors

	* reduce the cc_agents skills column size
	* fix some primary key issues in cc_flows and cc_agents
	* fix a couple of bad column names in cc_cdrs
(cherry picked from commit edd872182882536f3cf37bd5c4be633075f265d4)
Fix recalculation of sending socket after local route

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

(cherry picked from commit d37ae664dcfd9a5f83de62a493628ba12d495e75)
hp malloc statistics: fix incorrect stats when configuring split buckets
(cherry picked from commit b68cfbab2716efe9bdcc3bfd1724b228ce84bda2)
core statistics: export a initialization checking function

	* this allows statistics-dependent code to test initialization
	* change all "shm_malloc" calls to "shm_malloc_unsafe"

	* ultimately, memory allocators are now able to make use of core stats
(cherry picked from commit 42c3d383b1449af42a1ddfb91f4891f28fcbf50b)
hp malloc: differentiate the pkg and shm statistics code

When HP_MALLOC is defined:
	* shm statistics are based on 32/64-bit atomic counters
		- the former logic is still available with HP_MALLOC_FAST_STATS
		- however, stat aggregation and the shm threshold checks should be done by a single process
	* pkg statistics are implemented similarly to the other allocators
	* also re-introduce fragment coalescing for pkg memory

(cherry-picked from commit 268955ba5af0306e849877aecc87967a0b6c7c3e)
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)
opensipsctl: change trapping logging method

the operator '&>>' does not exist for all shells, used '2>&1 >>' instead
hp malloc: do not write the pattern file when "mem_warming" = 0

	* also improve the logging at shutdown
(cherry picked from commit 19832c6a24a8a3f291b744e739d8c3e3c0670267)
hp malloc: fix pkg max_real_used computation in hp_info()

	* update_shm_stats() should not be called at all
(cherry picked from commit e56f327aea403aae6982bbb404b2c9f6f4c146a3)
hp malloc: properly release the hash lock on redundant shm_reallocs

	* e.g. shm_realloc(shm_malloc(16), 16);
(cherry picked from commit 4148c3f19d99919bb06aff3d7370cbfb96c40374)
fix engage fixup function when called without any parameters

Reported by Ovidiu Sas
Closes #192

(cherry picked from commit cee47941726c03583eb37ae046a6f5c0293c9913)