Added randomize bitrate testmode feature, adding some eventing fixes.