Timing an Accreting Millisecond Pulsar: Measuring the Accretion Torque in IGR J00291+5934