adding registry code in plugman and removing dependencies. Updated configuration handling