The layer of flat cells which lines the body cavity of an embryo. In adults, it forms the covering of all membranes, such as the lungs and uterus.