Keep track of the principals for authenticated pids in Master and verify FramworkInfo::principal during (re-)registration.

Review: https://reviews.apache.org/r/21787