compile prefixtree, save 3pp sockethub instance if none there, cache messages