fix some bugs
declare api_http attribute so that it actually gets populated
add test for opsmatic::common