small changes in preperation for merging fits code.
Merge branch 'master' into sdfits
Moved hist.py and base_data.py to fits.py.
fits module importable and semi cleaned up.