Yes... adding in continuation local storage is something we really wanted to do, although when @akhoury tried to do it a couple years back, the technology was as-yet still a little immature.
Perhaps it is time for us to take a look at it again
I've never attempted anything like what you're looking at and my depth at the template system is fairly shallow, but I think you can do everything you're looking at just with templates and if blocks.