Fixed bug when bumping to login page from within permission_p, but permission_p was called form within ad_get_login_url, which is the proc that determines which login page to use
optimization from Heidelberg: changing to use persons table instead of cc_users when restriction to registered/approved users is not needed and the persons table has all columns we need
Making call to relation_add (on pages parties/new and users/new) not use the form_id and variable_prefix switches as doing so would make package_instantiate_object look for a rel_id in the form which wasn't there. This is analogous to fix in version 1.5 of groups/new.