Add hooks to fire after adding/removing to/from compounds.
Fix calling of hooks.
Merge pull request #31 from adam-vessey/7.x-UM-33

Add functions for managing adding/removing of compounds.