Support for across trial nodes

Also cleaned uup some stuff in the survival analysis (just because I
happened to stumble upon it) and cleared some naming confusion ("concept
code" was being used to describe concept paths).