Paddy Jackson's late penalty saw Ulster edge Newport Gwent Dragons 17-15, sending them top of the Guinness PRO12 table.