Unify SETUP_FILE behavior.

o Uses CHIRP_FILESYSTEM_MAXFD in all file systems.
o Uniform "valid fd" check.
o Do not allow access to Chirp server's file descriptors
  for the local file system (bug). This would allow access
  to e.g. stdin/stdout/stderr/debugfd.
fdvalid was actually fdinvalid.

Thanks Ben.
Uniform handling of open_files for open/close/init.

o Fixes bug where chirp_fs_chirp_open would always give a fd back if chirp_reli_open failed.
o Fixes a bug where local's open_files were not initialized.
o Fixes a bug where chirp_fs_local_open's fd was not set in open_files[fd].fd.
Inverted logic.
indentation
Reorganize and remove unneeded headers.
whitespace
Add missing declarations.
Unify SETUP_FILE behavior.

* ccl/pull/414/head:
  Add missing declarations.
  whitespace
  Reorganize and remove unneeded headers.
  indentation
  Inverted logic.
  Uniform handling of open_files for open/close/init.
  fdvalid was actually fdinvalid.
  Unify SETUP_FILE behavior.