Added protocol setting

Added protocol to settings for building docs request urls. Useful if a
load balancer is doing SSL termination so server requests are http but
external requests must be https.