Tests refactoring.

* Moved all the httplib2 code to server_support.
* The HTTP headers are only set in server_support.