cleanup + add a first version of trimActivity, which removes redundant trackpoints from an activity