Multiple masters subscription.

Added ability to subscribe to multiple masters in a single slave script
instance.