Defending champions Shamrock Rovers pulled off an impressive comeback from 2-0 down to beat Finn Harps 3-2 in a crazy game where they were awarded three penalties.