Add functions for managing adding/removing of compounds.

Also, a hook so we can notify other modules of the addition/deletion.