Ricardo Quaresma scored twice to lead Porto to the win over Bayern Munchen in the first leg of their UEFA Champions League fixture.