Added customDialog api to client-side controlpanel script
Added condition editor component, and editor for controlpanel