OS-270: hooks framework.

Configurable via cobalt_enable_action_hooks.

Change-Id: I4f747cccdb8ce8429b0557f8803f542e3e41ff58