Sensex ends 30 points higher; Nifty50 tops 8,580; GAIL rallies 4%