Expect instance of Codeplug and an index number in constructor. Added get/set for 'index' property.  If Map definition 'def' for this type of record has a 'delete_hook' method, call it when deleting the record, and pass Codeplug and index number to delete_hook.
Expect instance of Codeplug and an index number in constructor. Added get/set for 'index' property.  If Map definition 'def' for this type of record has a 'delete_hook' method, call it when deleting the record, and pass Codeplug and index number to delete_hook.

echicken/MD380-Codeplug