move lots of joint trip related code in an own package
Authored by: thibautd 2015-05-13
Parent: [r33127]
Child: [r33129]