Move EntityDocumentProcessor to datamodel package

This interface is not specific to dumpfiles. For example, it might be
useful for implementing a class that writes serialized JSON to some
stream.