Implement an IPAC table writer

This is based on discussions in #833 and and #1143.
@taldcroft
@keflavich
Please use this pull request to suggest your changes.

closes #833