Implement hold traj without direction reversals.

- Implement hold trajectory (executed whenever a trajectory is cancelled, or the
  controller is started) without resulting in direction reversals.

- Implementation assumes that a segment going from (pos, vel) to (pos,-vel) is
  symmetric and has a zero-velocity point in the middle.

- Reduce default hold trajectory duration to 0.5s.