Fixes variable declaration (whitelists -> whitelist)
Refactors ::getIpAddress() to remove complexity
Refactors ::isIpWhitelisted() to reduce cyclomatic complexity
Adjusts alignment of arrays/assigns
Merge pull request #1 from bryanagee/master

Refactoring to reduce complexity.