Move content encoding logic into its own class
Add support for combing multiple authentication mechanisms