Modifications and cleanup of NamedPipe

Corrections of small errors:
        - `this->fifo == NULL;` => `this->fifo = NULL;`
        - Added missing length argument for ReadFromPipe in
          space-commander-main.cpp

Changed ReadFromPipe so that instead of reading one byte at a time in a
loop it reads up to `buf_size` bytes in one call to `fread`.

Refactored if statements in ReadFromPipe and WriteToPipe to remove
duplicate `fread` and `fwrite` calls.
Updates to NamedPipe for nonblocking stuff
set this->fifo = NULL when closing
Changed NamedPipe to always open nonblocking with ensure_open()

Doesn't work yet, but should soon
Updates to NamedPipe, bidirectional nonblocking IO!!

Also using file descriptors instead of FILE*
Merge branch 'namedpipe-modifications' of github.com:spaceconcordia/space-commander into namedpipe-modifications

Conflicts:
	src/NamedPipe.cpp
merged with master
Updates to NamedPipe for nonblocking stuff
set this->fifo = NULL when closing
Updates to NamedPipe, bidirectional nonblocking IO!!

Also using file descriptors instead of FILE*
Working with netman and updated pipe names
Merged with netman stuff required
Merge branch 'namedpipe-modifications'

Conflicts:
	src/space-commander-main.cpp