Add SSL support for servers that use downstream SSL termination

We run the shareaholic.com blog behind an haproxy instance on which SSL is terminated. Wordpress's is_ssl function does not detect such terminations even with the X-Forwarded-Proto header set to "https".

I worked around this by specifying protocol-agnostic javascript includes, which will automatically use the current protocol (http or https).