Rework cpt i/o to be more like other GMT resources.  Now we can read/write cpts in memory instead of going to file