Foundation update 533

(ignore the Habitat stuff, since it was reverted out)

This is just replacing the Foundation framework files with the latest version.