Split up logic between files.

- AIPS IPS-related functinos are now in IPS.c
- Added a conditional ifndef to AIPS.h to prevent multiple includes but
  also to allow it's values to be resolved mroe than once across files.