Written some unit tests for url redirection. Fixed some bugs inside the loop event. Implemented the wait methods for the HTTP Server