code cleanup for EventLoop, Timer, TimerEvent, Http, and AsyncHttp
improved timeout handling for http requests