More implementation of astropy.units

(This is work in progress, need to finish it up completely before merging)