Changes for issue #2 and issue #3 . Also enabled https endpoints, which now appear to be available.