Refactored reading credentials out of master.cpp.

Review: https://reviews.apache.org/r/20301
Added a message string to the slave ShutdownMessage.

Review: https://reviews.apache.org/r/20302
Updated mesos-style.py with already-passing rules.

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