Crystal Palace overcame brave resistance from Exeter before booking their place in the second round of the Capital One Cup with a 2-1 win at St James' Park.