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!
you need to revert these changes to keep the function as it was and then deprecate it.