supporting internalURL for cloudfiles

re-working `use_internal_url` in declaration, adding test case for endpoint variable

lint white-space fix

lint white-space fix

match indent to the first character of first arg

Signed-off-by: Tomaz Muraus <tomaz@apache.org>
Update changes.