Divert, a Massachusetts-based startup focused on converting food waste into renewable energy, has hired a seasoned in-house leader with IPO and M&A experience as its first general counsel.