Fixes for issue PRA-710
PRA-830: Optionally validate the peer. Use SSL when SSL is being used in the scheme
Resolve conflicts
#170 follow redirects