oauth2: Clean up

Consolidate the ways in which the query and fragment are accessed.

Fixes: https://bugzilla.gnome.org/710363