Cowboys sign safety Allen and linebacker Durant