Split out quincuncial projection code.

This will be reused by Gringorten, and any other projections in future
that project a hemisphere into a square.