Pickling of Session and HTTPAdapter + a test

This is for issue #1088