Add brush event broker

Also migrate brush Javascript code to new callback system