Add messagecode resolver format based on application property
Use enum for MessageCodesResolver format

Fixes gh-670