Add HTTP handler

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