Moved encoder functions to motor_driver

The Dagu4Motor library handles both motor function and managing
encoders.