Restructured TS map computation

As close to final as it could get today.
Can you put the implementation into a utils class and call it "Bunch"?
We want to re-use this in many places.

Maybe it would be easiest / best to take this bunch implementation and bundle it in `gammapy.extern`?
https://github.com/dsc/bunch