migrates HttpServer to own source file
introduces events
improves HttpServer constructor
removes unnecessary "return"