Minor cleanup to addons/pf-maint.pl
Fix condition in register.cgi
Improve trace logging in Portal::ProfileFactory