added gzip compression to server

By gzipping transmissions we should improve performance
since the network is definetely the bottleneck for our
communication
added view for applying flats