[MODULES-157] Link module.xml parsing with new permission collection facility; tie it all together