Fix template engine caching

Thymeleaf template caching should be disabled in the "default"
profile (i.e. the developement profile) only.

production and staging environments should have caching enabled.