Add storage event handling infrastructure to storage_event.[ch], following the network_event.[ch] pattern.