Move parse_imu_calibration function into its own file

To avoid a dependency between the flashing dialog and the IMU plugin.