Source for beeminder callbacks.
Mode change