Did you try bleeding the brakes again this morning?
The fluid can foam if you already have air in the system and you pump the brakes too hard. Bleeding the master cylinder would've gotten air into the system. Also, did you correctly bleed the mastercylinder? To do this you need to run lines from the MC into the respective reservoirs making sure to keep the ends of the lines submerged and the MC level. Not adhering to these details will prevent you from completely bleeding the MC or worse, put more air into the system. Also, if the MC is bad like Jim suggests, you should've seen fluid around the back of the piston when you removed it to bleed it.
The distribution block valve should recenter itself overtime if the system is allowed to rest and the valve isn't stuck due to crud in the system. If your brake light is on and won't go off, that's a sign that it's still uncentered.
I would check your MC and if you're confident everything was done correctly, try bleeding the brakes again.