Update appcore.js

Add config option to enable/disable gzip compression.
By default compression is disabled.