db_text: fix issues when database file is missing an ending newline

* do not crash if file contains columns only and is missing the ending newline
* do not skip the last row of a database file if it lacks an ending newline

Reported by gergelypeli on GitHub
Closes issue #308
(cherry picked from commit a2172b256fd19aa56b352665a9d598d6a91b36a3)
Fix sending PRACK for multiple provisional replies.

Reported by Giuseppe Cardone.

(cherry picked from commit 3cd6db2be3728e14343697b886cdcfabd4353d51)
Avoid useless from header parsing in case the dr group was passed from script
Backported from trunk
Fixed CDR writing for replicated dialogs
Fixed the dialog timeout that gets replicated via BIN for updates
redis: fix crash when using FQDN in URL

(cherry picked from commit 4cf5a169f27a452187a69c0ca1bda993962491df)
Fix setting transaction timeout from CPL script.

Using AVPs in obsolete; we need to do it now via the TM API.

(cherry picked from commit 307c1730bd205b96ba9ea22d51d998956a26d773)
Removed useless "ping_interval" parameter.

Closes  #320, reported by @hydrosine .
cachedb_memcached: extend the host+port printing buffer
(cherry picked from commit 32f2c2434e99802e90e6166de18ad7523f19a603)
cachedb_sql: fix pkg memory leak

When fetching a key, the db_res_t structure would not be properly freed.
(cherry picked from commit e5ccde131eb72debd9aa400ced2e1e31bd61612d)

Conflicts:

	modules/cachedb_sql/cachedb_sql.c
cachedb_sql: properly fix git conflict (from f7d30b6e)
exec: reduce impact of the Shellshock bash exploit

Improve documentation awareness for Shellshock
exec: disable 'setvars' on all OpenSIPS versions

We break backwards-compatibility while improving security
on the larger proportion of existing OpenSIPS installations.
Merge pull request #346 from dsanders11/patch-1

Always update the call ID when updating a contact in usrloc table
(cherry picked from commit e13ab398d8b14bffa2acb6145b253aec030fdaab)
Fixed arrays processing ( arrays can be part of arrays or object )
Fixed processing of sub-objects
(cherry picked from commit aec12602da85078374135b31a69281d914b5776e)
fix aliases db schema

(cherry picked from commit 1572ed099c30ac4f8a21c150b25e0252404e6937)

Conflicts:
	scripts/pi_http/pi_framework.xml
Fix parsing of the SIP URI in db_get_auth_id() .

Closes #340.

(cherry picked from commit 465a978b812a1eae6a219e26f9a55d1d985a176b)
Fix how the contact URI is build.

Do not add transport info to URI when storing it, but rather when using it - avoid double "transport" param.
Remove useless ops with the AVP list.

(cherry picked from commit 8762c5e2e72e601337b9b2ddb9aaf32a44ddfc8c)
Fix setting proxy timeout from CPL script.

Reported by sekil on IRC.

(cherry picked from commit f647e34f98651a30f86f2f2dc774fa067bcce8ca)