time(it) magic: Implement minutes/hour formatting and "%%time" cell magic

%%time cell magic and better formatting for longer times (minutes/hours)in both timeit and time magic.

Currently minutes and hours use simple float formatting, not "hours:minutes:seconds" (1.5 min is 1 minute 30 secs).

fixes #2751 (partly)