Take region_name into account when calling url_for

Fixes bug 1103282

When creating a Client object with region_name specified, url_for
will return an endpoint url for that region.

Change-Id: Ia5c95503fe2ed5e53de93040d70ba08a9c09f286
Merge "Take region_name into account when calling url_for"