Which organelle is responsible for modifying, sorting, and packaging proteins for secretion or delivery to other organelles?