Enabled gzip for response
Added template for register API call
Modified update call to make use of Q defer