Add ezdialog directive
Big rewrite
Circular dependency?