Add HTTP handler

A general HTTP handler wrapper.
It is necessary to implement APIs.

I split pull-request #34 because it becomes complicated.