refactoring service code
refactoring service code

- fix error messages for rating payload
- change payload parsing to handle missed parameters and
do proper int() convertion.

GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox,GoogleCloudPlatform/cloud-ops-sandbox