Track cookbook lifecycle events in Segment.io

:fork_and_knife:

This ought to check a few boxes on [this Trello card](https://trello.com/c/BelISsLb/26-cookbook-metrics). We tried to do this in such a way that it's not super invasive when Segment.io is not configured (development, test, and probably most people who aren't Chef).