moved functions from rp-decision into rp-common; rp_create_user function added --KW