What is the foam that comes out when making clarified butter?
That foam is more of the milk solids, brought up and made foamy by water evaporating. The Joy of Baking says it is whey protein specifically.

I usually discard it but you can eat it. Some people like it on toast or other places where you might use butter or a light sprinkling of mild cheese.