add gzip support for upload both Android SDK & PHP web

As the offline log may have a big size (big than 50K if user open ur app offline), I think its a good idea to gzip the log and unzip it on the PHP web side.

Sorry but I'm not familar with IOS so I can't add this feature. But the PHP web side will well support both gzip request and the normal request.