Add ip helper functions to the Request class

Also removed an unused class import statement.