Role dependencies

BNC#867353

Whenever a proposal is deactivated, check that none of the active roles depend on it.