Fix JS regression in the template panel.

It was introduced during last week-end's large renaming.
Extract output of context processors instead of recreating it.

Also include context processors explicitly passed to RequestContext.

Fix #353.