[PLAT-3494] Register ViewResultListener before attaching to a ViewProcess
Revert "Use freemarket classpath loading of template as directory is not working with jars"

This reverts commit 3c47a50b04d3d245048c7081dbe26f8e518a6ea9.