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!
"Nested import": meaning that I should put the import within each relevant subfunction?