ondemand: new tunable (sleep_up_threshold
conservative: implemented mialwe's smooth_up + general fixes and cleanup
ondemand: refactor smooth_ui code