Add form and query helpers needed for Facebook auth.

I think it's OK because the content should still be encoded at this point. We decode it a few lines later.