Add opendir/closedir/readdir_r
Implement read_file_content for wire_io

This is useful for a one step reading of an entire file, instead of
going back and forth on the open/read/close just do it in one fell
swoop.