change entitiesPerType to a propety of model.annotationData.
bug fix: editor is not selected when click spans, grids and entities.
arrange edtitorApi.
bug fix: span and type are neccesary to undo when create removeEntityCommand.
create dataAccessObject that's role is data access.