Place the beans and onion in a 9 x 13 baking dish; set aside.
In a medium bowl, whisk together the next 9 ingredients (molasses through cayenne) and pour mixture over the beans and onion. Top with bacon pieces and bake until warm and bubbly, about 45 minutes.
Note: If you want crispy bacon on top, stick the pan under the broiler for 2-3 minutes before serving.