Fix compile warnings when defining -DDBG_LOCK
properly fix the dialog values escaping for nonascii chars
mi_json: escape '\\' character

also fix incorrect '"' escaping
remove bogus flushing for mi_json

TODO: find a proper way for handling flushing, since the current
implementation leads to a infinite loop
fixing the '\b' hexa representation for dialog vals

Thanks go to Walter Doekes for reporting on IRC
Re-formatted the dlg_list_ctx output

Added extra intermediary nodes for the dlg values and profiles in order to avoid key duplication for certain MI output formats ( eg. xml, json )
b2b_sca: new module providing SCA functionality
db/schema: xml files for b2b_sca module
scripts: db files for b2b_sca module
opensipsctl is calling ds_relaod for dr instead of dr_reload
Merge pull request #150 from staskobzar/master

opensipsctl is calling ds_relaod for dr instead of dr_reload
Fixed bogus triggering of PUBLISHing for non-INVITE sequential requests.
Credits go to Damien Sandras
Closes pull request #149

(cherry picked from commit e0cc9d009151a086f42c08d7f8092b8c7d5835ed)
opensipsctl: new command 'trap'
 - useful to get a full bt dump of all opensips processes
 - handy in dead-lock investigatigations
Makefile.conf.template: add newline at end of file
scripts/opensipsctl: nicer output for 'trap' if opensips is not running