#15 fixes endpoint issue

Is now able to determine while protocol to use with the endpoint. This way it now always uses http unless the hosted site uses https