master: Improve support for shadow master connections

Make it possible to distinguish shadow masters from ordinary
metaloggers. This will be used to improve monitoring tools.

Reject shadow masters and metaloggers whose version is lower than
version of the master server. This protects shadows from receiving
metadata updates that they may be unable to understand.

Change-Id: Ic489fc8974e24550d67db374a51b5ee884f54922