Fix flat

This applies a couple of additional fixes to the flat function in ccdproc including add min_value from #55 and adding tests of the ccdproc.flat task #33