ENH: Add support for cross generalization for time_gen

@dengemann @agramfort

This is work in progress, I will let you know when to review it.

Thanks!
Yes, I started from scratch and changed the function. I didn't have time to finish this part before leaving. I will do that tomorrow.