A Relativist's Toolkit: The Mathematics of Black-Hole Mechanics