s3-rpc_server: Move the endpoint registration to own file.