mag: Add a header file.
baro: Add a header file.
gyro: Add a header file and some averaging code.
twi: Work out part of the state machine.
twi: Prepare to rewrite.
twi: Rewrite entirely.