[Runtime] Re-factor the runtime class.

Add RuntimeUIDelegate for showing the runtime window by provided params.