add profileAddCustomGroupFields for creating profile fields

Maybe you want to throw an exception if the field create fails? Use civicrm_api3 (and eliminate the version param) and this happens automagically.