Added a setPort method and choose between http or https
Merge pull request #2 from tomac/master

Added a setPort method and choose between http or https