Factor Http Server widget out to common.

Fix bug in CustomWidget.ProcessEvent().