fixed lifetime bugs, add derivative transform to Body

- fixed various lifetime bugs related to `&'a mut self` borrowing a reference
  to `self` for an undefined length of time.
- add derivative component of transform to Body, at the moment only the velocity
  component is considered.
commit before significant architectural re-write