Fix regression with backward var compatibility, update docs and make multi master function automatically based on existence and secondary endpoint common name.