Folding and Association Versus Misfolding and Aggregation of Proteins