Former Massachusetts Gov. Deval Patrick has joined the board of directors of San Francisco-based Twilio Inc., a cloud communication software firm.