pkg/kamailio/deb: use gcj-* instead default-* one

(cherry picked from commit 4d4ab8becd7d806f8cae43149aab1e73bbe54969)
pkg/kamailio/deb: set JAVA_HOME and use libgcj12-dev instead of gcj-jdk

(cherry picked from commit ded4959bf1954dc114c9503d8294e7287bf373e7)
pkg/kamailio/deb: add openssl dependence

(cherry picked from commit 61e1237c158edb1c83a656dd91e7665867b8fe74)
pkg/kamailio/deb: merge changes from Debian

(cherry picked from commit 09b7a15e24800a5617695722a43d92b6fedfd77f)

Conflicts:
	pkg/kamailio/deb/squeeze/changelog
pkg/kamailio/deb: removing lucid

(cherry picked from commit a44d5311b583bc457b44550870dfbd4ea3fbcea4)

Conflicts:
	pkg/kamailio/deb/lucid/changelog
pkg/kamailio/deb: fix typo on depends

(cherry picked from commit b03e871a62f3895bfb70fe5b72b0142afa613684)
app_java: detect JAVA_HOME and use proper libgcj versioning

(cherry picked from commit 5c1b8e0f0f5565aa69440a331c520fc549856092)
presence: bugfix: Add option to disable per-Table lock for database layer
(causes trouble with MySQL in DB_ONLY mode)
presence: Clarify the db_lock_type in the docs in conjunction with the mode DB_ONLY and a MySQL-Backend.
presence: Regenerated README
tm: Fix docs on t_relay_to (Typo)
(as noticed by Victor V. Kustov)
pkg/kamailio/deb: unifying debian packaging
pkg/kamailio/deb: wrap-and-sort control files
pkg/kamailio/deb: update debian copyright file

(cherry picked from commit e1904a040001c82d691fbb42f6149c692143c109)
pkg/kamailio/deb: clean lintian errors

(cherry picked from commit 34720cbbf6f448a727a34164b690dabf393684ec)
core: fix condition on script callback number done inside EXTRA_DEBUG

- reported by Seudin Kasumovic, FS#388

(cherry picked from commit 740d407be4e35ee945658365ae38a1bba30fafc7)
htable: fix crash if key_value is not string
(cherry picked from commit 065439c0fbabe2806fcd615cec5e2445db59beec)
dmq: fixed crash caused by freeing pointer too early on tm callback
(cherry picked from commit 8be7de6d1d383c2e0e476e739a6b3fa5101bac12)
modules/utils: fixed memory leak and possible crash

- patch against 4.0 was provided by Guillaume Bour
(cherry picked from commit 92b947059dbde8ada3c757d7e6af48d79f9e7e12)
pkg/kamailio/deb: clean lintian warnings

(cherry picked from commit c2a606c1b03b1014caa9053d64d43d09c4744d04)