Added API function to change pool profile

Added the API function changepoolprofile to change a pool's profile to
the specified profile name.