Coleraine cut the gap to second-placed Glentoran to two points after goals from Joel Cooper and Mark Coyle sealed a comeback win at Dungannon Swifts.