Rename function names in s3-handler and rest-handler
Commonize request-handler from s3-handler and rest-handler