more refactoring in the bgd driver: move master task id constant to the
MasterTask class; fix the logging; other minor updates