Moved unit functionality from Quantities package to Astropy