improve code readability

Reformats code to appease the linter and adds a helper function for simple string formatting. Also adds a gitignore file and one backwards compatible change to default to port 80 when none is specified.
dry out a variable used in both proxy and redirect requests
fixup some indentation
Merge pull request #3 from lonnen/refactor

improve code readability