Move the dirty Ganglia migration logic into ganglia.pp, add hooft

Change-Id: I3aa7c62c3a5194ec26322a0033b3dfc04970fef1