Pull in scripts based on protocol

Also uses https for a few a outbound links.
Merge pull request #529 from ahinz/topic/https-scripts

Pull in scripts based on protocol