Some modifications in HttpKernel::handle.
Initial implementation of TemplateListener.