Allow Accept-Encoding header to be a list (for GZip support)

Intended to fix this bug: https://github.com/scalatra/scalatra/issues/283

The problem with the existing code is that if the user agent reports that they support a list of encodings (such as 'gzip, deflate'), which is the behaviour of most modern browsers, the existing code will not return a gzipped response.