Reformat base64 code, use library base64 functions in rlm_pap