add gcm. add function to response for API. fix some model issues.