Adding deflate accept-encoding support

Closes #536