Switched from restler to request for HTTP requests.
Moved from events to callbacks and switched to the request module for HTTP requests.
Fixed minor bugs and removed unnecessary lines.
Moved from events to callbacks and from restler to request.