Added magnetometer calibration to pilot plugin.
Also pass some events through the websocket.
Merge pull request #11 from wiseman/magnetocompass

Added magnetometer calibration to pilot plugin.