Move motion correction to motion.py

- motion.py module holds all motion correction tools now.
- This includes a CalcMotion class that calculates the motion of
arbitrary points in space.
- CorrectMotion now uses CalcMotion (with body->imu as the point in
space).
- update scripts.
- update api.py
- some pep8 fixes.