Implement InitializingBean and fix GrailsApplicationAware for Codecs

Respect grails.views.gsp.htmlcodec configuration

Commit 5037e65 intended for the grails.views.gsp.htmlcodec setting to take effect. This commit fixes the implementation so that setting is respected.

Issue: GRAILS-8978