Reply to subscriptions properly, and make subs map global

(Not actually global, but available to all the connections at least,
so pubs actually get matched with subs)