Detect when to serve resources over SSL
Merge pull request #8 from cftp/ssl-fix

Detect when to serve resources over SSL