Moved the remote address detection to a separate class
Added test for the remote address class
Updated a test
Updated some comments
Updated the getIp() method to avoid having the same code in 2 places