Added oauth2 and named user token examples.  Moved common http related code to its own script.