add license
Fix retain + delete logic

Deletes must preserved since lack of instruction is a retain not
delete like in tandem-core / easysync