Add automatic export of metrics from slaves to the master server. And rewrite the statistics export plugin to use this new system.