Added dns unit tests
Updated `module/remote': cleanup

Removed the cfrun function which was out-of-place, and moved some
general ssh options to the top of the file.
Added remote unit testing