Allow for https via proxy
Merge pull request #92 from cndreisbach/https

Use https in links when coming from HTTPS, even under proxy