core: added function to check if counters have been initialized

(cherry picked from commit 8161152b320f3b430523ea08e86a56f79405c2f4)
core: don't increment failed dns query counter for reverse dns lookup at startup

- it can happen before counters are intialized, thus check that before
- reported by Hugh Waite, FS#375

(cherry picked from commit 89c6d73dd51eb9b96f50d3f04219612fa7725224)
pkg/kamailio/deb/debian: fix mono deps

(cherry picked from commit f17c51fe48149a6b7634cee2e36ee463e1ee9fef)
pkg/kamailio/deb: add new modules app_java, autheph, sctp

(cherry picked from commit 450d7ecb49a64e71dd28273b470911bd933bc209)
pkg/kamailio/deb: Add dnssec module ( jessie only )

(cherry picked from commit 50b1c3a52c150201a563060cd1059a49ada89af2)
pkg/kamailio/deb: add jessie release

(cherry picked from commit daee150595e6fabdf53aa66425d32234ec7bbde7)
pkg/kamailio/deb: add new modules

(cherry picked from commit e043c3a44b163e511e62af5c7290fb587141b400)
pkg/kamailio/deb: update changelog
app_perl: declare extern environ variable

- without it doesn't compile on darwin and it is recommended way to do
- provide some fake argc and argv to PERL_SYS_INIT3() to avoid compile
  warnings

(cherry picked from commit 34ad8c295b45bc52cc5a071bf2b5651865389f94)
app_perl: added mechanism to avoid leaks specific to persistent perl interpreter

- it is not easy to track the scope of variables, especially in libs,
  the solution being to re-init the interpreter
- new module parameter reset_cycles to specify the number of execution
  cycles after which the interpreter is reset. Default is 0 - don't
  reset at all

(cherry picked from commit b5527627601c9e41ebbfaccb98bc2cf0bc003bdb)
app_perl: added rpc commands to set/get the value for reset_cycles

(cherry picked from commit de2c39a1857d74443c6b1fa4f06cbb18d3dd8026)
app_perl: docs updated with reset_cycles parameter and rpc commands

(cherry picked from commit b1f4dbeef93511563164de2f030f510f5a2cf2d9)
doc/rpc_list: added sctp in the list of modules exporting rpc commands

(cherry picked from commit 56c772fbd1490a7cef3f748c61d1c7d7be3167a3)
doc/rpc_list: regenerated the lists of rpc commands

(cherry picked from commit 2ffeea75931600e2da70d696a9965a5b7329211b)
Makefile.defs: version set to 4.1.0

- new major release
ChangeLog: file updated for v4.1.0