implemented db.getReplicationInfo() and friends #223

also printReplicationInfo and printSlaveReplicationInfo