refactored request code into seperate file, prepped for implementation of event emitter to alert when an IP address has been assigned, fixed some request string errors