PJ: fix some pedantic warnings.
UTIL: combine slist routines into a single file.

Added additional error checking and SLIST_SAFETY.
Removed duplicate implementations.
UTIL: combine dlist routines into a single file.

Added additional error checking and design notes.
Removed duplicate implementations.