J.P. Bilbrey, the interim president and CEO at Hershey, has been handed the job on a permanent basis.