Refactor code
Use util.inherit to inherit EventEmitter
Emit two events -
	* HttpResponse - For HTTP responses, status codes
	* NetworkError - For Network timeout error, connection error
Cleanup tests