Refactoring to support command line configuration of kurento distributed topology

Change-Id: I51b4aed636c41038154b754e177810a124f267bf