Barbecued Meatloaf With Caramelized Onions