move q3dict to qhash in modules

Replace Q3Dict in modules to QHash, only a simple interface change. The larger change is that we have to release memory of object of QHash value by ourselves.