Q-Squared - Peter David
Title had me at Q, but the twists in the book gave me a headache. Preferred Q-in-Law.