Rate-Tunable Control Barrier Functions: Methods and Algorithms for Online Adaptation