EntityForm needs to allow specification of read-only state

Issue #411