[PATCH 1/7] pakfire.cgi: Separate command processing and HTML generation