The statistical mechanics of relativistic orbits around a massive black hole