Add support for PAPE parameters.
Convery PAPE preferred auth policies to array if string.
Only add PAPE request if needed; namespace params like oauth
Fix test failures caused by unexplained URL change