Fix proper handling of wamp Broker and Dealer using factories and
futures.