Installs analytics, refactors templates directory structure.