SDSS refactoring, with a heavy emphasis on no-remote-tests!

This is an incomplete refactor; there are components of SDSS that should probably get a little more attention, but this takes care of the bare minimum changes of preventing remote queries during testing.  Very close!