added support to send gzip files if they exist

Added support to serve .gz files and set response encoding headers if accept header is present and .gzfile exists