google-api-go-generator: let BasePath be configurable
google-api-go-generator: let BasePath be configurable

For supporting Endpoints.

R=dsymonds
CC=golang-codereviews
https://codereview.appspot.com/56280043

bpo/google-api-go-client,bpo/google-api-go-client