Remove history API, use unregistered to signal unavailability of bg-mgr, fix set_token_rate bug.