Adds a secure option

Just to fix issue #1, this adds an option to use https instead of http.