Adding an optional hook that's called when changing layouts on the page form. Small cleanup as well.
Merge pull request #394 from comfy/reinitialize_blocks_hook

Adding an optional hook that's called when changing layouts on the page ...