Refactor Measurements

This refactors `measurements.py` to have some more cleanly labeled internal properties and to allow sorting based on wavelength order optionally; the default is now no sorting.