initial code for supporting oauth (globus and mg-rast)