IDialogService and IApplicationContext work

Implemented dialog service and started work on IApplicationContext.