Changing Primary Domain for a Google Apps account

Changing the primary domain name on a Google Apps account is a non-trivial process. I recently needed to do this for a customer, and created a console application that makes the job easier. This works on OS X and Linux; Windows support is unknown (and will not be tested by me). It’s written in Go,…