A strong finish saw Cavan pick up a priceless home win over Louth, securing the Breffni County's first points of the league.