CwrcDialog object is global

Currently its being created (re-created) for every require call. This issue is to convert it to a constructor like the other modules.  After instantiation we should then pass it on to the objects in which need it or keep a reference to it.