Welsh champions The New Saints picked up a 2-1 win over S.P Tre Penne of San Marino in the first leg of the Champions League's first qualifying round.