Moved the long_periodic_selector functions to periodic_selector!

long_periods has more specialized digging in orion but periodic_selector is a generic thing so it's better.