A few tests for mincmath.
Tidy up mincmath interface; some docstrings.
Partial work on mincresample.
Minor fixes; thanks to pyflakes and syntastic.