Added gzip support and first part of memcache setup