Merge presence/subscription support from waqas

Bug fixes and checks for presence subscriptions, etc

Outbound presence subscription

Routing code reorganization

Inbound subscription request

Inbound unsubscribe

Inbound subscription cancellation

Inbound subscription approval

Minor fixes, comments

Little tweak for more useful logging of closed s2s sessions

(0) -100 -10 +10 +100 +300 +1000 +3000 tip

mercurial