* don't close the socket when handing off to RemoteFileBuffer * remove redundant check for "w" mode in the 404 case * properly close the socket in the isdir() case * add readline() method to RemoteFileBuffer