Initial check in of Trajectory code.  Pretty raw but first draft.