Factor out loading and saving into functions
Factor out loading and saving into functions

This removes the requirement to specify `--gromacs` in order to also
write `--amber`.

shirtsgroup/InterMol,shirtsgroup/InterMol,mrshirts/InterMol,mrshirts/InterMol