Add form and query helpers needed for Facebook auth.

I still highly recommend going with the most correct logic here, per whatever is in the RFC.