Branch for work on fixing some auth issues

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5683 ddefafc4-47db-0310-ae44-fa13212b10f2
requests through dialog use SharedPtr to fix some auth reltes(subscription matching) issues. Also will save a copy & allocation.
BaseSubscription::matches should now work for ServerSubscription

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5684 ddefafc4-47db-0310-ae44-fa13212b10f2
merged main:5710 into the branch.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5713 ddefafc4-47db-0310-ae44-fa13212b10f2
changed to use SharedPtr for all the requests and responses sent through dialog and dum.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5717 ddefafc4-47db-0310-ae44-fa13212b10f2
changed send and reject to return a ref and send to take a ref.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5718 ddefafc4-47db-0310-ae44-fa13212b10f2
changed to use SharedPtr.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5724 ddefafc4-47db-0310-ae44-fa13212b10f2
changed answerOptions() to return SharedPtr<SipMessage>.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5725 ddefafc4-47db-0310-ae44-fa13212b10f2
check event package handler before creating a new server subscription to handle the request.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5737 ddefafc4-47db-0310-ae44-fa13212b10f2
changed sig of ClientRegistrationHanlder::onRemoved and bug fixing.

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/b-authfixes@5743 ddefafc4-47db-0310-ae44-fa13212b10f2