Add container_of() macro

Given a pointer to a structure which is embedded within another
structure, gets a pointer to the parent structure.