Refactor some code to get the configured Jenkins port with the jenkins_port function

Fixes #206
Merge pull request #207 from rtyler/issues/206-firewall-port-refactor

Introduce the jenkins_port function