Try to sniff correct protocol for connection image

This attempts to load the connection testing image using https if appropriate.
Currently there is an option to set any image url, but it would be nice to default to following the same protocol as the page.  I used "document.location.protocol" instead of "//" for compatibility, but maybe its not necessary?
This would also solve [issue #20](https://github.com/HubSpot/offline/issues/20) I believe.

Let me know if theres in problems with this PR, and thanks for the great lib.
-Joe