Use singleton on http kernel for testing.

Signed-off-by: crynobone <crynobone@gmail.com>
Some small improvements.

Signed-off-by: crynobone <crynobone@gmail.com>