#812 Pages: implemented filtering by template / master page