Add callback mechanism, with time and buffer size rate limit. Implement packet_lost, inst_info, and spike callbacks.