Added singletond trait and wrote base for http