Authentication framework for Dancer-based web applications