Adding first cut at code to match sources, in preparation of doing relative photometry. Not yet tested.