Hooks now take a list of parameters.

Instead of a map. Map was overly complicated for not much.
And now we can pass the topology parameters to the hook
(will do that in another change).