LPS-32110 Remove unused variable definition.
LPS-32110 Add layout.ftl for two reasons:1) improve performance of ftl by decreasing the use of array from Freemarker 2) prepare for remove dependency in groups.ftl
LPS-32110 Calculate publicPageCount, remove the dependency in groups.ftl.