Stop reproducing the exact same code for every method
use requests instead of httplib & urllib2

still need to test that requests does the right thing via (self) signed
SSL certs

also clean up the exposed namespace
use requests for getting token from globus
Merge branch 'dev-py-client'
Merge branch 'master' of https://github.com/kbase/typecomp
Shut up Pep8
Fix client, more pep8, turn on SSL checking for globus in server

- a couple of the names in the client were broken. Given both Mike M.
and I tested the clients, the mind boggles how this was missed.

- turned on SSL checking in the server when contacting Globus. Not sure
why Steve turned this off.

- Some more pep8 clean up.
KBASE-922 #comment X-Forwarded-For / X-Real-IP in py server

Use the X-Forwarded-For and X-Real-IP headers in the python server as
per KBASE-922:

By default, the logged ip address will be, in order of preference:
1) X-Forwarded-For[0]
2) X-Real-IP
3) The standard address

If the config file for the server includes 
dont_trust_x_ip_headers = true
then only the standard address is logged.

The content of X-Forwarded-For is always logged, if it exists, in a log
message preceding the start method message.
KBASE-922 #comment X-Forwarded-For / X-Real-IP in pl server

Use the X-Forwarded-For and X-Real-IP headers in the perl server as
per KBASE-922:

By default, the logged ip address will be, in order of preference:
1) X-Forwarded-For[0]
2) X-Real-IP
3) The standard address

If the config file for the server includes 
dont_trust_x_ip_headers = true
then only the standard address is logged.

The content of X-Forwarded-For is always logged, if it exists, in a log
message preceding the start method message.
Merge branch 'MrCreosote-master'
add logging etc fixes.