Separated the dist-from-orign speed function into a separate file.
Fixed a problem with a loop terminator in find_valid_speed_nearest_to_period()
Updated the speed assignment for extensions to allow a function to be used.
Added the per-segment length calculation stuff to register of available funcs.
Added some default parameters in terms of vehicle speed, accel etc to
mode_timetable_info.py