Fix PID loop and implement accel/gyro sensor reading.

- Use a custom Lua function to run the PID loop and return the
  motor values to the Quadcopter script.  Avoids marshalling the
  values as strings through the C API.
- Use tubes to read data from the accelerometer and gyro.