Understanding the link between high-fat diets, insulin resistance, and diabetic heart disease

The relationship between a high-fat diet and increased risk of Type 2 diabetes and heart disease is well-known. But what is the connection and how does it work?