Use @ConfigurationProperties for Thymeleaf

Fixes gh-1250