slices_from_to: trigger on dips and peaks

Added tests for a variety of combinations.
Merge branch 'master' of https://github.com/FlightDataServices/FlightDataAnalyzer