Centralize the configuration of ZeroMQ sockets.

This patch centralizes the provisioning and configuration of ZeroMQ sockets in
'stream.py'. It also provides helper methods for iterating on ZMQ_SUB sockets.

Change-Id: I76282e1603abed4d76d20cd1a57c05e16aca48f0