Oh yeah, that part too.
The quick, hand-waving, unqualified answers are: blueshift is from band-filling, redshift is from bandtail states. But that's completely unqualified, that's just always the first answer that comes out, whether it's actually right or not.
For a more complete picture...