Protein folding and the regulation of signaling pathways