Rework fetching remote file

Added new method get_file to client which pulls file from remote with only a single round trip.

Changed _exec_command_yielding_stdout_raw_bytes to loop with less redundant checks.