I added some earth distance stuff based on cube instead of point to the
earthdistance contrib. I corrected a problem with the original earthdistance
and also used a better way to calcuate distance that is more accurate for
short distances. I added regression tests. Earthdistance now depends on
contrib/cube and make in earthdistance will do a make install in cube.
I also made a couple of minor changes to cube. I changed it to use
create or replace function in the install script. I added some commented
out grant commands in the install script that shows what needs to be
done to make the functions publicly available.