tm: free from and to display names that can be set for local request from seas module

- reported and patch by Ziad Habchi

(cherry picked from commit 1b53001ad3ad1e9bfd3e64f8e03c35d4e5f54e8d)
modules/rls: changed default hash size from 512 to 9 to avoid overflow

(cherry picked from commit 48bb4b562d7d7ec20b45dbe555836bb8969b988d)
modules/presence: fix crash in main/attendant process when using presence module in library mode

(cherry picked from commit 20302744b22858e0e215e74e2a6656677881bb4a)
core/parser: handle the case when username field in auth header has proto scheme

- some phones put there "sip:username@domain", so far it was handling
  "username" and "username@domain"

(cherry picked from commit e56ff0e6a5745321c6a4a5f362cc728177acef0d)
db_cluster: fix caseness in testing the connection flags for reading

- on a report generated by cppcheck sent by David Binderman

(cherry picked from commit 88a1a1b25b5228ef2e34ee01e0dd5d4e4f6ffe20)