Use Astropy infrastructure for setup.py

This uses some of the infrastructure from the affiliated package template to make our lives easier.