Added selective Gzip compressing capability to the demo rest api