Slave sync complete callback and set master and slave api ports via settings.
Refs #19 and #26