Implemented IOManager._read_one_line_from_pipe().

This provides a Python 2 and 3 compatible means of reading the first
newline-delimited string from a pipe.
Integrated IOManager._read_from_pipe() into PackageManager.