1042 api trip claims

Trip claims APIs and some changes to existing trip APIs. See comments on the changes below.