Free resources allocated by watch after deletion
Fix linked list corruption issues resulting in memory leaks
Replace extraneous dl_shallow_copy/free pair with pointer assignment
Use S_IS* macros instead of direct bit manipulations
Merge pull request #16 from wulf7/integrate-dmatveev3

memory leak fixes & some minor improvements