cmd/tsr: read configuration file in main

This code is replicated through all subcommands. I'm not removing it
from there, yet.
cmd/testing: extract transport stuff from testing package
cmd: use cmd/testing instead of testing

This fix the import loop reported by our continuous integration
services.