change to use loan pattern for url handling

Broke out a "doLoanURLCall" function in the "util" package, and then
used it instead of always making calls to scala.io.Source.