Makefile.defs: version set to 4.0.0-rc0

- branch for release series 4.0.x has been created
rtpproxy: proper fixup function for rtpproxy_manage(...)

- second parameter was resolved as spve type, although fixed as str
- reported by  Markus Bucher, FS#273
(cherry picked from commit b23510e0adb6060a257c8662700450ed7faef080)
Makefile: split module groups definitions in Makefile.groups

- the part was quite big and it is more config related than build rules
- it has to be updated with the current list of modules
(cherry picked from commit 23a22e2c8d73843798d66ec1bebe22cf7702213b)
Makefile.defs: -DWITH_AS_SUPPORT is on by default

- it was for kamailio flavour only
- can be disabled with WITHAS=0 and exclude_modules+=seas
(cherry picked from commit 01cbe8bf98d6ad1ef8cf7e0b9f646fde81831fc6)
Makefile: updated the groups of modules

- they are kept in Makefile.groups to keep main Makefile cleaner
- most of modules are in lists groupped mostly by dependency
- compilation and packaging groups are build using the lists
- exclude_modules list is automatically built from all modules without
  those part of lists with external dependencies
(cherry picked from commit b5024f320b578c831d3ee13b077bb87954bc61b0)
db_postgres: handle prepare statements in DB APIv2

- patch by  Markus Bucher, closes FS#272
(cherry picked from commit 09c7b67beee9529d6a7c06e600c7f294bf453eda)
Makefile.groups: refer to pkg groups instead of K
(cherry picked from commit 3cf821d9983418d68ca33edc35ff5eb2e592d16f)
dispatcher: release lock instead of destroy when cleaning active calls hash table

- this could happen when dispatcher list was reloaded
- reported and fix by Dmitry, closes FS#275
(cherry picked from commit d83b9aefd5afa25b2d18a8bf92357fbd33d627bf)
usrloc: added missing state from AoR contact dump
(cherry picked from commit 068e6e5903801ca7cb7d1ca304d35bca70a34b58)
Makefile.defs: version set to 4.0.0-rc1
Makefile.groups: restored outbound as packaging group
(cherry picked from commit 6375044137494f1203f26580e16f63c92225c596)
Makefile.groups: mi_xmlrpc has a dedicated pkg grpup depending on xmlrpc-c library
(cherry picked from commit 49251e62da99bf05f257e12306cafec614feb408)
pkg/kamailio/(centos|fedora): updated release tag in .spec
pkg/kamailio/(centos|fedora): updated .spec to match latest changes
Makefile.groups: fixed typo in the name of perl mods list

- reported by Peter Dunkley
(cherry picked from commit f4a4ad8effe41a30705a49da3097818c83d3be6e)
pkg/kamailio/(centos|fedora): re-added perl files
(cherry picked from commit df1af285d60e2d066c2753e8f3815a7dc4f97684)
pkg/kamailio/(centos|fedora): updated .spec in preparation for release
pkg/kamailio/(centos|fedora): added docbook2X build requirement
(cherry picked from commit dd2ef87af7dac6fb1411d58a0dd2e6125b99da80)

Conflicts:
	pkg/kamailio/fedora/17/kamailio.spec
ChangeLog: updated content to prepare for v4.0.0
(cherry picked from commit 28111e7943f209ed936a6e9f1d5278d6235cedbb)
ChangeLog_k: removed obsolete file
(cherry picked from commit ff04edd6ee7ddc213b346afffeec04a995bf16fa)