Prime elements in partially ordered groupoids applied to modules and Hopf algebra actions