Rainflow range mean option and refactored endurance module
Added options to also return the mean of rainflow ranges in the find_rainflow_ranges functions. Refactored endurance module, changes should make it easier to define BiLinear and TriLinear endurance curves.