Move pause_pos calculation to helper function (for external use)

Also, do integer division instead of float (no need)
bottle: Make pos_down and pos_up public to enable external use
utils: Add crossfade function