fixed getAttachmentsByFeatureLayer() to support negative featureIds
fixed replaceFeatureId() method to allow changes to be really written
now, uploading attachments works (not complete)
implemented delete() method
now we can upload attachments and delete them from indexeddb afterwards
much more readable code