Add function current_tempo which pulls from the Thread local bpm variable in Studio.

Fixes #8.