Add replication factor & webapp cluster config

Add support for setting the REPLICATION_FACTOR in both the relay and aggregator configuration.

Add support for webapp clustering.