Add helper method for getting pinned SSLSocketFactory

Some libraries like Google's Volley allow constructing HTTP clients with custom SSLSocketFactory's, so instead of copy pasting some SSLSocketFactory construction boiler-plate code, I thought I'd try to DRY things up by creating this helper method.