Use base url to get https protocol - closes #50