Nonparametric Independence Testing And Regression For Time-To-Event Data