Refactored io header and map meta data

Removed deriivaties of file header all files supported by io must
return a deriv of FileHeader.
Also wrote a little wrapper around pyfits.write_to() for fast output.