Added type for the dialog callback.
Core now tracks the dialog callback.
Dialog callback now passes onto the client.
Updated the simulator to the latest API.