added replaceFeatureId() method to low level attachmentsStore module
allow time for changes to persist
add getAttachmentsByFeatureLayer() method to attachmentsStore