Add support for string 'http'/'https' protocol config option

Allow configuration options to use 'http'/'https' to specify which protocol to use rather than having to pass in a http/https module. Doesn't break backwards compatibility.