Boyd (18 points) helps Danvers hold off Gloucester