Support piping in file objects from stdin. Closes #4.