Try and ensure that metadata warnings only get raised once, and fixed a deprecation warning due to a change in the Astropy API
Merge pull request #72 from astrofrog/enforce-single-warning

On some platforms, warnings are repeated many times