Use $replication_info everywhere, instead of $server_* variables.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Replace $replication_info by a global variable.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Fix PHPCS issues.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1389 from Tithugues/replicationInfo_master

Use $replication_info everywhere, instead of $server_* variables.