Added Python swapfiles to .gitignore.
Set port based on whether HTTPS is used.