The Prelude to and Aftermath of the Giant Flare of 2004 December 27: Persistent and Pulsed X-Ray Properties of SGR 1806–20 from 1993 to 2005