Gamma ray bursts as probes of neutrino mass, quantum gravity and dark energy