modify AGREST to accomodate both AG_Auth and OAuth1