Added request wrapping for HTTPS proxying

Updates #215