Yikes! Must have had to dump a BUTTLOAD of fuel. Sorry for the environment.
Probably non-emergency mechanical/tech. If it had been a medical or other emergency, the flight more likely would have made an intermediate stop at JFK or BOS or BGR or Nova Scotia.