Fix travis to use the new autoload workaround in settings.php

Also included a couple of tweaks from the redirect module, which might be good to look into it further in future.

Currently tests are failing which I'm looking into now - it's also happening locally.