Proxy plugin: Updated to load but ignore out-of-scope pages

[Task #5426337097455]

In addition:
  * Fixed a bug causing the 'content-length' to hold an invalid value thus
     affecting the presentation.
  * Moved TemplateScope class to its own file.