Updates to the build and tests to not use mutable URL requests and to fix the broken build in travis.