XX-11378: 1. Added functionality to merge contact results for new registration and possibly stale read data from local db.  2. Added clusterId in read preference.  3.  Remove all parameter setting primaryPreferred to true
XX-11378:  Changing default value for preferPrimary to false.
temporarely disabled fix for XX-10796 - Integrated custom mongo pool and scopped connection
XX-11378: sipxecs components should read ONLY from local mongodb node - usage of read tag set

-useReadTags=true always in mongo-client.ini or mongo-local.ini
-custerId now matches the location id (removed the hardcoded value 1)
-generated clusterId in mongo-client.ini, mongo-local.ini
-generated always read tags given clusterId in mongo-client.ini and mongo-local.ini; aded clusterId first, shardId last
to direct mongo reads to local node first. both for global database and for region database
-updated clusterId value in mongo global database, region database config
XX-11378: sipxecs components should read ONLY from local mongodb node - usage of read tag set

- read clusterId properly from mongo-client.ini, use it as a first tag as order matters
Revert "XX-11378: sipxecs components should read ONLY from local mongodb node - usage of read tag set"

This reverts commit fb9f23bc8507131366848c665b91a7c42cdb3d08.
Merge remote-tracking branch 'origin/release-14.04' into release-14.04
XX-11389 SIP components should be able to enable C++ mongo driver logs
added support to enable mongo c++ driver logging to syslog

XX-11381 Backout custom mongo C++ driver changes and introduce query with timeout
Added configurable query timeout

XX-11378 sipxecs components should read ONLY from local mongodb node - usage of read tag set
bugfix - clusterid should be copied in copy constructor and it should come first in query
updated homer reference
XX-11389 SIP components should be able to enable C++ mongo driver logs

added missing update
XX-11389 SIP components should be able to enable C++ mongo driver logs
XX-11390: Mongo query timeouts should be configurable

-add new page in System menu: Database Settings
-add logging level, timeout in ms, enable mongo driver logging settings
-write settings in mongo-client.ini, mongo-local.ini-> replicate them accross cluster
XX-11389 SIP components should be able to enable C++ mongo driver logs

fixed logging levels by using numeric values
Merge remote-tracking branch 'origin/release-14.04' into release-14.04
  XX-11390: Mongo query timeouts should be configurable
changed name of option to query-timeout-ms
XX-11378:  Used host:port comparison instead if full contact comparison when merging unregister results.  Added logs.
XX-11383: Improve OsLogHelper to log PRI_ALERT -> PRI_EMERG in a separate logfile
XX-11382: improve SEC / Alarm service performance

- log sipxbridge, sipxivr and sipxrelay alarms in separate files (-alarms.log): new "alarms" logger configured in log4j property to be used for alarms
- confiugred logrotate for new logs, added logrotate for backup.log
- instruct sec to use only files that could contain alarms (and removed /var/log/messages)
- make sure sipxlogwatcher-rc is written only once
- prevent logwatcher reload when .sec files are not changed despite replication
XX-10950: Added cache support for entity records
XX-11382: improve SEC / Alarm service performance

-fix sipxlogwatcer-rc write on upgrade