added nearly all features of dialog except a few imp one
added nearly all features of dialog except a few imp one

arshdkhn1/gsoc17-convert-xul-to-html,arshdkhn1/gsoc17-convert-xul-to-html,arshdkhn1/gsoc17-convert-xul-to-html